函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__hugetlb_cgroup_file_init

函数原型:static void __init __hugetlb_cgroup_file_init(int idx)

返回类型:void

参数:

类型参数名称
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, 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.)
调用者
名称描述
hugetlb_cgroup_file_init