Function report | 
Source Code:mm\slab.c | 
Create Date:2022-07-28 15:44:45 | 
| Last Modify:2022-05-23 17:02:55 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Get the memory for a slab management obj.* For a slab cache when the slab descriptor is off-slab, the* slab descriptor can't come from the same cache which is being created,* Because if it is the case, that means we defer the creation of
Proto:static void *alloc_slabmgmt(struct kmem_cache *cachep, struct page *page, int colour_off, gfp_t local_flags, int nodeid)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct kmem_cache * | cachep | |
| struct page * | page | |
| int | colour_off | |
| gfp_t | local_flags | |
| int | nodeid | 
| 2347 | addr = page_address(page) | 
| 2349 | slab: first object = addr + colour_off | 
| 2350 | SLAB = 0 | 
| 2352 | If OBJFREELIST_SLAB(cachep) Then freelist = NULL | 
| 2358 | If Not freelist Then Return NULL | 
| 2360 | Else | 
| 2362 | freelist = addr + (PAGE_SIZE << gfporder) - freelist_size | 
| 2366 | Return freelist | 
| Name | Describe | 
|---|---|
| cache_grow_begin | Grow (by 1) the number of slabs within a cache. This is called by* kmem_cache_alloc() when there are no active objs left in a cache. | 
| 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  |