函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static umode_t cgroup_file_mode(const struct cftype *cft)

返回类型:umode_t

参数:

类型参数名称
const struct cftype *cft
1491  mode等于0
1493  如果read_u64read_s64seq_showmode或等于S_IRUGO
1496  如果write_u64write_s64write
1497  如果CFTYPE_* flags 按位与CFTYPE_WORLD_WRITABLEmode或等于S_IWUGO
1499  否则mode或等于S_IWUSR
1503  返回:mode
调用者
名称描述
cgroup_add_file