函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cgroup_file_name

函数原型:static char *cgroup_file_name(struct cgroup *cgrp, const struct cftype *cft, char *buf)

返回类型:char

参数:

类型参数名称
struct cgroup *cgrp
const struct cftype *cft
char *buf
1468  ss等于NULL for cgroup core files
1470  如果NULL for cgroup core files 且非CFTYPE_* flags 按位与CFTYPE_NO_PREFIX的值且非 Hierarchy-specific flags 按位与CGRP_ROOT_NOPREFIX的值则
1472  dbg等于如果CFTYPE_* flags 按位与CFTYPE_DEBUG则".__DEBUG__."否则""
1474  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*@
1477  否则
1478  strscpy - Copy a C-string into a sized buffer*@dest: Where to copy the string to*@src: Where to copy the string from*@count: Size of destination buffer* Copy the string, or as much of it as fits, into the dest buffer. The
1480  返回:buf
调用者
名称描述
cgroup_rm_file
cgroup_add_file