Documentation: realtime.rst: adopt type aware kmalloc
Subsystems (2)
PATCH 1/1 Documentation: realtime.rst: adopt type aware kmalloc
Update real-time/differences.rst to reflect new type-aware kmalloc-functions as suggested in commit 2932ba8d9c99 ("slab: Introduce kmalloc_obj() and family")
Signed-off-by Manuel Ebner <[email protected]>
--- Documentation/core-api/real-time/differences.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/core-api/real-time/differences.rst +1 -1
@@ -128,7 +128,7 @@ PREEMPT_RT, the timer must be marked with the HRTIMER_MODE_HARD flag. Memory allocation ----------------- -The memory allocation APIs, such as kmalloc() and alloc_pages(), require a +The memory allocation APIs, such as kmalloc_obj() and alloc_pages(), require a gfp_t flag to indicate the allocation context. On non-PREEMPT_RT kernels, it is necessary to use GFP_ATOMIC when allocating memory from interrupt context or from sections where preemption is disabled. This is because the allocator must
Signature · 1 line
2.54.0