| Function report | 
| Source Code: mm\slab.c | Create Date:2022-07-28 15:46:23 | 
| Last Modify:2022-05-23 17:02:55 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:get_slabinfo
Proto:void get_slabinfo(struct kmem_cache *cachep, struct slabinfo *sinfo)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct kmem_cache * | cachep | |
| struct slabinfo * | sinfo | 
| 4088 | total_slabs = 0 , free_objs = 0 , shared_avail = 0 | 
| 4089 | free_slabs = 0 | 
| 4094 | check_irq_on() | 
| 4095 | spin_lock_irq( & list_lock) | 
| 4097 | total_slabs += total_slabs | 
| 4098 | free_slabs += free_slabs | 
| 4099 | free_objs += free_objects | 
| 4101 | If shared Then shared_avail += avail | 
| 4104 | spin_unlock_irq( & list_lock) | 
| 4106 | num_objs = total_slabs * num | 
| 4107 | active_slabs = total_slabs - free_slabs | 
| 4108 | active_objs = num_objs - free_objs | 
| 4110 | active_objs = active_objs | 
| 4112 | active_slabs = active_slabs | 
| 4113 | num_slabs = total_slabs | 
| 4114 | shared_avail = shared_avail | 
| 4116 | batchcount = batchcount | 
| 4118 | objects_per_slab = num | 
| 4119 | cache_order = gfporder | 
| Name | Describe | 
|---|---|
| cache_show | |
| dump_unreclaimable_slab | 
| 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 |