Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__hugetlb_cgroup_file_init

Proto:static void __init __hugetlb_cgroup_file_init(int idx)

Type:void

Parameter:

TypeParameterName
intidx
357  h = hstates[idx]
360  mem_fmt(buf, 32, huge_page_size(h))
363  cft = cgroup control files [0]
364  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
365  private = MEMFILE_PRIVATE(idx, RES_LIMIT)
366  read_u64 = hugetlb_cgroup_read_u64
367  write = hugetlb_cgroup_write
370  cft = cgroup control files [1]
371  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
372  private = MEMFILE_PRIVATE(idx, RES_USAGE)
373  read_u64 = hugetlb_cgroup_read_u64
376  cft = cgroup control files [2]
377  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
378  private = MEMFILE_PRIVATE(idx, RES_MAX_USAGE)
379  write = hugetlb_cgroup_reset
380  read_u64 = hugetlb_cgroup_read_u64
383  cft = cgroup control files [3]
384  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
385  private = MEMFILE_PRIVATE(idx, RES_FAILCNT)
386  write = hugetlb_cgroup_reset
387  read_u64 = hugetlb_cgroup_read_u64
390  cft = cgroup control files [4]
391  memset(cft, 0, size of cft )
393  WARN_ON(group_add_legacy_cftypes - add an array of cftypes for legacy hierarchies*@ss: target cgroup subsystem*@cfts: zero-length name terminated array of cftypes* Similar to cgroup_add_cftypes() but the added files are only used for* the legacy hierarchies.)
Caller
NameDescribe
hugetlb_cgroup_file_init