Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cgroup_file_name

Proto:static char *cgroup_file_name(struct cgroup *cgrp, const struct cftype *cft, char *buf)

Type:char

Parameter:

TypeParameterName
struct cgroup *cgrp
const struct cftype *cft
char *buf
1468  ss = NULL for cgroup core files
1470  If NULL for cgroup core files && Not (CFTYPE_* flags & CFTYPE_NO_PREFIX) && Not ( Hierarchy-specific flags & CGRP_ROOT_NOPREFIX) Then
1472  dbg = If CFTYPE_* flags & CFTYPE_DEBUG Then ".__DEBUG__." Else ""
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  Else
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  Return buf
Caller
NameDescribe
cgroup_rm_file
cgroup_add_file