Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 4 files:
- fs/sysfs/dir.c, line 59
- fs/sysfs/group.c, line 176
- include/linux/kernfs.h, line 636
- kernel/cgroup/cgroup.c, line 5983
Smatch caller information:
fs/resctrl/rdtgroup.c kernfs_create_dir() -> kernfs_create_dir_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 4096-ptr_max |
| PARAM_VALUE | 5 | priv | 0,4096-ptr_max |
| PARAM_VALUE | 6 | ns | 0 |
| BUF_SIZE | 0 | parent | s32min-s32max |
| BUF_SIZE | 1 | name | s32min-(-1),1-s32max |
| BUF_SIZE | 1 | name | s32min-(-1),1-s32max |
| BUF_SIZE | 5 | priv | (-1),136,480,1128 |
| BUF_SIZE | 5 | priv | (-1),136,480,1128 |
| CAPPED_DATA | 0 | parent | 1 |
| DATA_SOURCE | 0 | parent | $0 |
| DATA_SOURCE | 1 | name | $1 |
| DATA_SOURCE | 2 | mode | $2 |
| DATA_SOURCE | 5 | priv | $3 |
| STR_LEN | 0 | parent | (-1),4,8,10,13 |
| STR_LEN | 0 | parent | (-1),4,8,10,13 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | mode | 16384-17407[c] |
| UNITS | 0 | parent | unit_array_size |
| LOCK2 | global &rdtgroup_mutex |
kernel/cgroup/cgroup.c cgroup_create() -> kernfs_create_dir_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | mode | 16384-17407 |
| PARAM_VALUE | 5 | priv | 4096-ptr_max |
| PARAM_VALUE | 6 | ns | 0 |
| BUF_SIZE | 1 | name | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | name | s32min-(-2),1-s32max |
| BUF_SIZE | 5 | priv | 8192-u64max |
| DATA_SOURCE | 1 | name | $1 |
| DATA_SOURCE | 2 | mode | $2 |
| DATA_SOURCE | 5 | priv | r _kzalloc_noprof |
| BIT_INFO | 2 | mode | 0x4000,0x7fff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | mode | 16384-17407[c] |
| LOCK2 | global &cgroup_mutex | ||
| HALF_LOCKED2 | &dentry->d_lockref.lock |
fs/sysfs/dir.c sysfs_create_dir_ns() -> kernfs_create_dir_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 1-u64max |
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| PARAM_VALUE | 2 | mode | 493 |
| PARAM_VALUE | 5 | priv | 4096-ptr_max |
| PARAM_VALUE | 6 | ns | 0,4096-ptr_max |
| BUF_SIZE | 1 | name | 1-s32max |
| BUF_SIZE | 6 | ns | (-1),256 |
| BUF_SIZE | 6 | ns | (-1),256 |
| DATA_SOURCE | 5 | priv | $0 |
| DATA_SOURCE | 6 | ns | $1 |
| STR_LEN | 0 | parent | (-1),2-19,24 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/sysfs/group.c internal_create_group() -> kernfs_create_dir_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 1-u64max |
| PARAM_VALUE | 0 | parent->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 1 | name | 1-u64max |
| PARAM_VALUE | 2 | mode | 493 |
| PARAM_VALUE | 5 | priv | 4096-ptr_max |
| PARAM_VALUE | 6 | ns | 0 |
| BUF_SIZE | 1 | name | 1-s32max |
| BUF_SIZE | 5 | priv | (-1),248 |
| DATA_SOURCE | 5 | priv | $0 |
| STR_LEN | 0 | parent | (-1),2-19,24 |
| RX_PATH | |||
| TASK_NOT_RUNNING |