Function report |
Source Code:mm\slab.h |
Create Date:2022-07-28 14:04:28 |
| Last Modify:2022-05-23 16:25:42 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:slab_want_init_on_alloc
Proto:static inline bool slab_want_init_on_alloc(gfp_t flags, struct kmem_cache *c)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| gfp_t | flags | |
| struct kmem_cache * | c |
| 722 | If static_branch_unlikely( & init_on_alloc) Then |
| 723 | If ctor Then Return false |
| 725 | If Used for retrieving partial slabs, etc. & (Defer freeing slabs to RCU | DEBUG: Poison objects ) Then Return flags & __GFP_ZERO |
| 727 | Return true |
| 729 | Return flags & __GFP_ZERO |
| 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 |