Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hugetlb_cgroup_read_u64

Proto:static u64 hugetlb_cgroup_read_u64(struct cgroup_subsys_state *css, struct cftype *cft)

Type:u64

Parameter:

TypeParameterName
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  Case MEMFILE_ATTR(private) == RES_USAGE
274  Return page_counter_read(counter) * PAGE_SIZE
275  Case MEMFILE_ATTR(private) == RES_LIMIT
276  Return max * PAGE_SIZE
277  Case MEMFILE_ATTR(private) == RES_MAX_USAGE
278  Return legacy * PAGE_SIZE
279  Case MEMFILE_ATTR(private) == RES_FAILCNT
280  Return failcnt
281  Default
282  BUG()