函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-27 17:45:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mem_cgroup_read_u64

函数原型:static u64 mem_cgroup_read_u64(struct cgroup_subsys_state *css, struct cftype *cft)

返回类型:u64

参数:

类型参数名称
struct cgroup_subsys_state *css
struct cftype *cft
3252  memcg等于mem_cgroup_from_css(css)
3256  :MEMFILE_TYPE(private)恒等于_MEM
3257  counter等于 Accounted resources
3258  退出
3259  :MEMFILE_TYPE(private)恒等于_MEMSWAP
3260  counter等于 Legacy consumer-oriented counters
3261  退出
3262  :MEMFILE_TYPE(private)恒等于_KMEM
3263  counter等于kmem
3264  退出
3265  :MEMFILE_TYPE(private)恒等于_TCP
3266  counter等于tcpmem
3267  退出
3268  默认
3269  BUG()
3273  :MEMFILE_ATTR(private)恒等于RES_USAGE
3274  如果counter恒等于 Accounted resources 则返回:mem_cgroup_usage(memcg, false)乘PAGE_SIZE
3279  :MEMFILE_ATTR(private)恒等于RES_LIMIT
3280  返回:maxPAGE_SIZE
3282  返回: legacy PAGE_SIZE
3284  返回:failcnt
3286  返回:soft_limitPAGE_SIZE
3287  默认
3288  BUG()