Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:get_slabinfo

Proto:void get_slabinfo(struct kmem_cache *cachep, struct slabinfo *sinfo)

Type:void

Parameter:

TypeParameterName
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
4111  num_objs = num_objs
4112  active_slabs = active_slabs
4113  num_slabs = total_slabs
4114  shared_avail = shared_avail
4115  limit = limit
4116  batchcount = batchcount
4117  shared = shared
4118  objects_per_slab = num
4119  cache_order = gfporder
Caller
NameDescribe
cache_show
dump_unreclaimable_slab