Function report |
Source Code:mm\slab.c |
Create Date:2022-07-28 15:45:30 |
| Last Modify:2022-05-23 17:02:55 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:slab_alloc_node
Proto:static __always_inline void *slab_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid, unsigned long caller)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kmem_cache * | cachep | |
| gfp_t | flags | |
| int | nodeid | |
| unsigned long | caller |
| 3274 | flags &= gfp_allowed_mask |
| 3275 | cachep = slab_pre_alloc_hook(cachep, flags) |
| 3276 | If Value for the false possibility is greater at compile time(!cachep) Then Return NULL |
| 3280 | local_irq_save(save_flags) |
| 3282 | If nodeid == NUMA_NO_NODE Then nodeid = slab_node |
| 3285 | If Value for the false possibility is greater at compile time(!get_node(cachep, nodeid)) Then |
| 3288 | Go to out |
| 3304 | out : |
| 3305 | local_irq_restore(save_flags) |
| 3308 | If Value for the false possibility is greater at compile time(slab_want_init_on_alloc(flags, cachep)) && ptr Then memset(ptr, 0, The size of an object without metadata ) |
| 3311 | slab_post_alloc_hook(cachep, flags, 1, & ptr) |
| 3312 | Return ptr |
| Name | Describe |
|---|---|
| kmem_cache_alloc_node | kmem_cache_alloc_node - Allocate an object on the specified node*@cachep: The cache to allocate from.*@flags: See kmalloc().*@nodeid: node number of the target node.* Identical to kmem_cache_alloc but it will allocate memory on the given |
| 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 |