Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 3 files:
Smatch caller information:
fs/resctrl/rdtgroup.c rdtgroup_kn_mode_restore() -> kernfs_setattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | kn | 4096-ptr_max |
| PARAM_VALUE | 0 | kn->__parent | 0 |
| PARAM_VALUE | 0 | kn->hash | 2-2147483646 |
| PARAM_VALUE | 0 | kn->ns | 0,4096-ptr_max |
| PARAM_VALUE | 1 | iattr | 3665582073602404352 |
| PARAM_VALUE | 1 | iattr->ia_file | 0 |
| PARAM_VALUE | 1 | iattr->ia_size | 0 |
| PARAM_VALUE | 1 | iattr->ia_valid | 1 |
| CAPPED_DATA | 0 | kn->hash | 1 |
| DATA_SOURCE | 0 | kn | r kernfs_find_and_get_ns |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | global &rdtgroup_mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
fs/resctrl/rdtgroup.c rdtgroup_kn_mode_restrict() -> kernfs_setattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | kn | 4096-ptr_max |
| PARAM_VALUE | 0 | kn->__parent | 0 |
| PARAM_VALUE | 0 | kn->hash | 2-2147483646 |
| PARAM_VALUE | 0 | kn->ns | 0,4096-ptr_max |
| PARAM_VALUE | 1 | iattr | 4267454735485972480 |
| PARAM_VALUE | 1 | iattr->ia_file | 0 |
| PARAM_VALUE | 1 | iattr->ia_mode | 0,16384,32768,40960 |
| PARAM_VALUE | 1 | iattr->ia_size | 0 |
| PARAM_VALUE | 1 | iattr->ia_valid | 1 |
| CAPPED_DATA | 0 | kn->hash | 1 |
| DATA_SOURCE | 0 | kn | r kernfs_find_and_get_ns |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | global &rdtgroup_mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
fs/resctrl/rdtgroup.c rdtgroup_kn_set_ugid() -> kernfs_setattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | kn | 4096-ptr_max |
| PARAM_VALUE | 1 | iattr | 1357167242518061056 |
| PARAM_VALUE | 1 | iattr->ia_file | 0 |
| PARAM_VALUE | 1 | iattr->ia_mode | 0 |
| PARAM_VALUE | 1 | iattr->ia_size | 0 |
| PARAM_VALUE | 1 | iattr->ia_valid | 6 |
| CAPPED_DATA | 0 | kn | 1 |
| DATA_SOURCE | 0 | kn | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | kn->attr.size | |
| LOCK2 | global &rdtgroup_mutex |
fs/sysfs/file.c internal_change_owner() -> kernfs_setattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | iattr | 8479703697062043648 |
| PARAM_VALUE | 1 | iattr->ia_file | 0 |
| PARAM_VALUE | 1 | iattr->ia_mode | 0 |
| PARAM_VALUE | 1 | iattr->ia_size | 0 |
| PARAM_VALUE | 1 | iattr->ia_valid | 6 |
| DATA_SOURCE | 0 | kn | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/sysfs/file.c sysfs_chmod_file() -> kernfs_setattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | kn | 4096-ptr_max |
| PARAM_VALUE | 1 | iattr | 3084116752747241472 |
| PARAM_VALUE | 1 | iattr->ia_mode | 292,420,4388-61860 |
| PARAM_VALUE | 1 | iattr->ia_valid | 1 |
| CAPPED_DATA | 0 | kn->hash | 1 |
| DATA_SOURCE | 0 | kn | r kernfs_find_and_get |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex |
fs/sysfs/group.c sysfs_group_attrs_change_owner() -> kernfs_setattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | kn | 4096-ptr_max |
| PARAM_VALUE | 1 | iattr | 4888952401304956928 |
| PARAM_VALUE | 1 | iattr->ia_file | 0 |
| PARAM_VALUE | 1 | iattr->ia_mode | 0 |
| PARAM_VALUE | 1 | iattr->ia_size | 0 |
| PARAM_VALUE | 1 | iattr->ia_valid | 6 |
| CAPPED_DATA | 0 | kn->hash | 1 |
| DATA_SOURCE | 0 | kn | r kernfs_find_and_get |
| DATA_SOURCE | 1 | iattr | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/sysfs/group.c sysfs_group_attrs_change_owner() -> kernfs_setattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | kn | 4096-ptr_max |
| PARAM_VALUE | 1 | iattr | 4888952401304956928 |
| PARAM_VALUE | 1 | iattr->ia_file | 0 |
| PARAM_VALUE | 1 | iattr->ia_mode | 0 |
| PARAM_VALUE | 1 | iattr->ia_size | 0 |
| PARAM_VALUE | 1 | iattr->ia_valid | 6 |
| CAPPED_DATA | 0 | kn->hash | 1 |
| DATA_SOURCE | 0 | kn | r kernfs_find_and_get |
| DATA_SOURCE | 1 | iattr | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/sysfs/group.c sysfs_group_change_owner() -> kernfs_setattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | kn | 4096-ptr_max |
| PARAM_VALUE | 1 | iattr | 4888952401304956928 |
| PARAM_VALUE | 1 | iattr->ia_file | 0 |
| PARAM_VALUE | 1 | iattr->ia_mode | 0 |
| PARAM_VALUE | 1 | iattr->ia_size | 0 |
| PARAM_VALUE | 1 | iattr->ia_valid | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING |