函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hugetlb_cgroup_read_u64

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

返回类型:u64

参数:

类型参数名称
struct cgroup_subsys_state *css
struct cftype *cft
268  h_cg等于hugetlb_cgroup_from_css(css)
270  counter等于* the counter to account for hugepages from hugetlb.[MEMFILE_IDX(private)]
273  :MEMFILE_ATTR(private)恒等于RES_USAGE
274  返回:page_counter_read(counter)乘PAGE_SIZE
275  :MEMFILE_ATTR(private)恒等于RES_LIMIT
276  返回:maxPAGE_SIZE
277  :MEMFILE_ATTR(private)恒等于RES_MAX_USAGE
278  返回: legacy PAGE_SIZE
279  :MEMFILE_ATTR(private)恒等于RES_FAILCNT
280  返回:failcnt
281  默认
282  BUG()