Searched refs:gfp (Results 1 – 5 of 5) sorted by relevance
/DragonOS-0.1.2/kernel/src/mm/ |
D | allocator.rs | 2 use super::gfp::__GFP_ZERO; 8 unsafe fn local_alloc(&self, layout: Layout, gfp: gfp_t) -> *mut u8; in local_alloc() 9 unsafe fn local_alloc_zeroed(&self, layout: Layout, gfp: gfp_t) -> *mut u8; in local_alloc_zeroed() 17 unsafe fn local_alloc(&self, layout: Layout, gfp: gfp_t) -> *mut u8 { in local_alloc() 21 return kmalloc(layout.size() as u64, gfp) as *mut u8; in local_alloc() 24 unsafe fn local_alloc_zeroed(&self, layout: Layout, gfp: gfp_t) -> *mut u8 { in local_alloc_zeroed() 28 return kmalloc(layout.size() as u64, gfp | __GFP_ZERO) as *mut u8; in local_alloc_zeroed()
|
D | slab.h | 60 void *kmalloc(unsigned long size, gfp_t gfp); 69 static __always_inline void *kzalloc(size_t size, gfp_t gfp) in kzalloc() argument 71 return kmalloc(size, gfp | __GFP_ZERO); in kzalloc()
|
D | mod.rs | 2 pub mod gfp; module
|
D | slab.c | 540 void *kmalloc(unsigned long size, gfp_t gfp) in kmalloc() argument 619 if (gfp & __GFP_ZERO) in kmalloc()
|
/DragonOS-0.1.2/docs/kernel/core_api/ |
D | mm-api.md | 9 ### `void *kmalloc(unsigned long size, gfp_t gfp)` 23 **gfp** 27 ### `void *kzalloc(unsigned long size, gfp_t gfp)` argument 40 **gfp**
|