Function report |
Source Code:mm\slab.h |
Create Date:2022-07-28 14:04:20 |
Last Modify:2022-05-23 16:25:42 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:slab_pre_alloc_hook
Proto:static inline struct kmem_cache *slab_pre_alloc_hook(struct kmem_cache *s, gfp_t flags)
Type:struct kmem_cache
Parameter:
Type | Parameter | Name |
---|---|---|
struct kmem_cache * | s | |
gfp_t | flags |
560 | flags &= gfp_allowed_mask is set to GFP_BOOT_MASK during early boot to restrict what* GFP flags are used before interrupts are enabled |
562 | fs_reclaim_acquire(flags) |
563 | fs_reclaim_release(flags) |
567 | If should_failslab(s, flags) Then Return NULL |
570 | If memcg_kmem_enabled() && ( flags & __GFP_ACCOUNT || Used for retrieving partial slabs, etc. & SLAB_ACCOUNT ) Then Return memcg_kmem_get_cache(s) |
574 | Return s |
Name | Describe |
---|---|
slab_alloc_node | |
slab_alloc | |
kmem_cache_alloc_bulk | |
slab_alloc_node | Inlined fastpath so that allocation functions (kmalloc, kmem_cache_alloc)* have the fastpath folded into their functions. So no function call* overhead for requests that can be satisfied on the fastpath. |
kmem_cache_alloc_bulk | Note that interrupts must be enabled when calling this function. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |