Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
fs/sysfs/file.c sysfs_add_file_to_group() -> sysfs_add_file_mode_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | attr | 4096-ptr_max |
| PARAM_VALUE | 5 | ns | 0 |
| DATA_SOURCE | 1 | attr | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &_T->lock->msi.data->mutex | ||
| HALF_LOCKED2 | &hisi_ptt->filter_lock | ||
| HALF_LOCKED2 | _T->lock |
fs/sysfs/file.c sysfs_create_file_ns() -> sysfs_add_file_mode_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 1-u64max |
| PARAM_VALUE | 0 | parent->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 1 | attr | 4096-ptr_max |
| PARAM_VALUE | 5 | ns | 0,4096-ptr_max |
| BUF_SIZE | 1 | attr | (-1),40 |
| BUF_SIZE | 1 | attr | (-1),40 |
| BUF_SIZE | 1 | attr->key | (-1),16 |
| BUF_SIZE | 1 | attr->name | (-1),6-9,11,13,15,32-33 |
| DATA_SOURCE | 1 | attr | $1 |
| DATA_SOURCE | 5 | ns | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &device_ctls_mutex | ||
| HALF_LOCKED2 | global &list_mutex |
fs/sysfs/group.c create_files() -> sysfs_add_file_mode_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | attr | 4096-ptr_max |
| PARAM_VALUE | 2 | mode | 0,4-4532 |
| PARAM_VALUE | 5 | ns | 0 |
| CAPPED_DATA | 0 | parent | 1 |
| DATA_SOURCE | 0 | parent | $0 |
| DATA_SOURCE | 3 | uid | $2 |
| DATA_SOURCE | 4 | gid | $3 |
| STR_LEN | 0 | parent | (-1),2-19,24 |
| STR_LEN | 0 | parent | (-1),2-19,24 |
| BIT_INFO | 2 | mode | 0x0,0x11b4 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/sysfs/group.c sysfs_merge_group() -> sysfs_add_file_mode_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | attr | 4096-ptr_max |
| PARAM_VALUE | 5 | ns | 0 |
| CAPPED_DATA | 0 | parent->hash | 1 |
| DATA_SOURCE | 0 | parent | r kernfs_find_and_get |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mddev->reconfig_mutex | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | global &dev_pm_qos_sysfs_mtx |