Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-28 16:11:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mem_cgroup_reset

Proto:static ssize_t mem_cgroup_reset(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off)

Type:ssize_t

Parameter:

TypeParameterName
struct kernfs_open_file *of
char *buf
size_tnbytes
loff_toff
3544  memcg = mem_cgroup_from_css(of_css(of))
3548  Case MEMFILE_TYPE(private) == _MEM
3549  counter = Accounted resources
3550  Break
3551  Case MEMFILE_TYPE(private) == _MEMSWAP
3552  counter = Legacy consumer-oriented counters
3553  Break
3554  Case MEMFILE_TYPE(private) == _KMEM
3555  counter = kmem
3556  Break
3557  Case MEMFILE_TYPE(private) == _TCP
3558  counter = tcpmem
3559  Break
3560  Default
3561  BUG()
3567  Break
3568  Case MEMFILE_ATTR(private) == RES_FAILCNT
3569  failcnt = 0
3570  Break
3571  Default
3572  BUG()
3575  Return nbytes