函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hugetlb_cgroup_reset

函数原型:static ssize_t hugetlb_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
322  ret等于0
324  h_cg等于hugetlb_cgroup_from_css(of_css(of))
326  counter等于* the counter to account for hugepages from hugetlb.[MEMFILE_IDX(private)]
329  :MEMFILE_ATTR(private)恒等于RES_MAX_USAGE
330  page_counter_reset_watermark(counter)
331  退出
332  :MEMFILE_ATTR(private)恒等于RES_FAILCNT
333  failcnt等于0
334  退出
335  默认
336  ret等于负EINVAL
337  退出
339  返回:如果ret否则nbytes