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_create_bin_file() -> sysfs_add_bin_file_mode_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 1-u64max |
| PARAM_VALUE | 1 | battr | 4096-ptr_max |
| PARAM_VALUE | 6 | ns | 0 |
| BUF_SIZE | 1 | battr | (-1),96,106 |
| BUF_SIZE | 1 | battr | (-1),96,106 |
| BUF_SIZE | 1 | battr->attr.name | (-1),6,10 |
| DATA_SOURCE | 1 | battr | $1 |
| STR_LEN | 1 | battr->attr.name | (-1),5 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | battr->size | 1-u32max,18446744071562067968-u64max |
| HOST_DATA | 3 | size | 1-u32max,18446744071562067968-u64max |
| UNITS | 3 | size | unit_byte |
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | &hdev->driver_input_lock | ||
| HALF_LOCKED2 | &sp->mutex |
fs/sysfs/group.c create_files() -> sysfs_add_bin_file_mode_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | battr | 4096-ptr_max |
| PARAM_VALUE | 2 | mode | 0,4-4532 |
| PARAM_VALUE | 6 | ns | 0 |
| CAPPED_DATA | 0 | parent | 1 |
| DATA_SOURCE | 0 | parent | $0 |
| DATA_SOURCE | 4 | uid | $2 |
| DATA_SOURCE | 5 | 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 | |||
| UNITS | 3 | size | unit_byte |