Documented in 1 files:
Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
fs/kernfs/dir.c kernfs_add_one() -> kernfs_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | name | 4096-ptr_max |
| BUF_SIZE | 1 | ns | (-1),256 |
| BUF_SIZE | 1 | ns | (-1),256 |
| CAPPED_DATA | 1 | ns | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &root->kernfs_rwsem | ||
| TYPE_LOCK | (struct kernfs_root)->kernfs_rwsem |
fs/kernfs/dir.c kernfs_find_ns() -> kernfs_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | name | s32min-s32max |
| BUF_SIZE | 1 | ns | (-1),256 |
| BUF_SIZE | 1 | ns | (-1),256 |
| CAPPED_DATA | 1 | ns | 1 |
| DATA_SOURCE | 0 | name | $1 |
| DATA_SOURCE | 1 | ns | $2 |
| STR_LEN | 0 | name | (-1),11,13,18 |
| STR_LEN | 0 | name | (-1),11,13,18 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | *name | 0-255 |
| UNITS | 0 | name | unit_byte |
| USER_PTR | 0 | name | |
| LOCK2 | &root->kernfs_rwsem | ||
| HALF_LOCKED2 | &root->kernfs_supers_rwsem | ||
| HALF_LOCKED2 | global &dpm_list_mtx | ||
| HALF_LOCKED2 | global &kernfs_pr_cont_lock | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct kernfs_root)->kernfs_rwsem |
fs/kernfs/dir.c kernfs_rename_ns() -> kernfs_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ns | 0,4096-ptr_max |
| BUF_SIZE | 1 | ns | (-1),256 |
| BUF_SIZE | 1 | ns | (-1),256 |
| DATA_SOURCE | 1 | ns | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &root->kernfs_rwsem | ||
| LOCK2 | global &dpm_list_mtx | ||
| HALF_LOCKED2 | &hdev->lock | ||
| HALF_LOCKED2 | _T->lock | ||
| TYPE_LOCK | (struct kernfs_root)->kernfs_rwsem |