Home
last modified time | relevance | path

Searched refs:gfp (Results 1 – 5 of 5) sorted by relevance

/DragonOS-0.1.5/kernel/src/mm/
Dallocator.rs1 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()
Dslab.h60 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()
Dmod.rs4 pub mod gfp; module
Dslab.c540 void *kmalloc(unsigned long size, gfp_t gfp) in kmalloc() argument
619 if (gfp & __GFP_ZERO) in kmalloc()
/DragonOS-0.1.5/docs/kernel/core_api/
Dmm-api.md9 ### `void *kmalloc(unsigned long size, gfp_t gfp)`
23 **gfp**
27 ### `void *kzalloc(unsigned long size, gfp_t gfp)` argument
40 **gfp**