函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mem_cgroup_reset

函数原型:static ssize_t mem_cgroup_reset(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off)

返回类型:ssize_t

参数:

类型参数名称
struct kernfs_open_file *of
char *buf
size_tnbytes
loff_toff
3544  memcg等于mem_cgroup_from_css(of_css(of))
3548  :MEMFILE_TYPE(private)恒等于_MEM
3549  counter等于 Accounted resources
3550  退出
3551  :MEMFILE_TYPE(private)恒等于_MEMSWAP
3552  counter等于 Legacy consumer-oriented counters
3553  退出
3554  :MEMFILE_TYPE(private)恒等于_KMEM
3555  counter等于kmem
3556  退出
3557  :MEMFILE_TYPE(private)恒等于_TCP
3558  counter等于tcpmem
3559  退出
3560  默认
3561  BUG()
3567  退出
3569  failcnt等于0
3570  退出
3571  默认
3572  BUG()
3575  返回:nbytes