Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:group_file_mode - deduce file mode of a control file*@cft: the control file in question* S_IRUGO for read, S_IWUSR for write.

Proto:static umode_t cgroup_file_mode(const struct cftype *cft)

Type:umode_t

Parameter:

TypeParameterName
const struct cftype *cft
1491  mode = 0
1493  If read_u64 || read_s64 || seq_show Then mode |= S_IRUGO
1496  If write_u64 || write_s64 || write Then
1497  If CFTYPE_* flags & CFTYPE_WORLD_WRITABLE Then mode |= S_IWUGO
1499  Else mode |= S_IWUSR
1503  Return mode
Caller
NameDescribe
cgroup_add_file