函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-27 17:20:17
Last Modify:2022-05-23 17:02:55 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:get_slabinfo

函数原型:void get_slabinfo(struct kmem_cache *cachep, struct slabinfo *sinfo)

返回类型:void

参数:

类型参数名称
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  如果sharedshared_avail加等于avail
4104  spin_unlock_irq( & list_lock)
4106  num_objs等于total_slabsnum
4107  active_slabs等于total_slabsfree_slabs
4108  active_objs等于num_objsfree_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
调用者
名称描述
cache_show
dump_unreclaimable_slab
memcg_accumulate_slabinfo