Defined in 2 files as a function:
- include/linux/stringhash.h, line 43 (as a function)
- scripts/gcc-plugins/randomize_layout_plugin.c, line 40 (as a function)
Referenced in 19 files:
- drivers/firmware/arm_scmi/driver.c, line 208
- drivers/firmware/arm_scmi/quirks.c, line 211
- fs/adfs/dir.c, line 409
- fs/affs/namei.c, line 60
- fs/efivarfs/super.c
- fs/exfat/namei.c
- fs/fat/namei_vfat.c, line 144
- fs/hfs/string.c, line 66
- fs/hfsplus/unicode.c
- fs/hpfs/dentry.c, line 32
- fs/isofs/inode.c, line 192
- fs/jfs/namei.c, line 1561
- fs/kernfs/dir.c, line 335
- fs/namei.c
- fs/ntfs3/namei.c, line 427
- fs/ntfs3/upcase.c, line 112
- fs/smb/client/dir.c, line 989
- fs/unicode/utf8-core.c, line 134
- scripts/gcc-plugins/randomize_layout_plugin.c, line 50
Smatch caller information:
drivers/firmware/arm_scmi/driver.c scmi_vendor_protocol_signature() -> partial_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 0-255 |
| PARAM_VALUE | 1 | prevhash | 0-45045 |
| FUZZY_MAX | 1 | prevhash | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &info->protocols_mtx |
fs/ntfs3/upcase.c ntfs_names_hash() -> partial_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 0-u16max |
| BUF_SIZE | 1 | prevhash | s32min,(-1)-s32max |
| DATA_SOURCE | 0 | c | r upcase_unicode_char |
| DATA_SOURCE | 1 | prevhash | $3 [m] |
| STR_LEN | 0 | c | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| STR_LEN | 1 | prevhash | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| BIT_INFO | 1 | prevhash->d_flags | 0x1,0xffffffffffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/ntfs3/namei.c ntfs_d_hash() -> partial_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 0-127 |
| STR_LEN | 0 | c | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| STR_LEN | 1 | prevhash | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/firmware/arm_scmi/quirks.c scmi_quirk_signature() -> partial_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 0-255 |
| PARAM_VALUE | 1 | prevhash | 0-45045 |
| FUZZY_MAX | 1 | prevhash | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/kernfs/dir.c kernfs_name_hash() -> partial_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 0-255 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | c | 0-255 |
| LOCK2 | &root->kernfs_rwsem | ||
| HALF_LOCKED2 | global &dpm_list_mtx | ||
| TYPE_LOCK | (struct kernfs_root)->kernfs_rwsem |
fs/unicode/utf8-core.c utf8_casefold_hash() -> partial_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 1-255 |
| DATA_SOURCE | 0 | c | r utf8byte |
| STR_LEN | 0 | c | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| STR_LEN | 1 | prevhash | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | c | 1-255 |
| USER_DATA | 1 | prevhash | 0-u64max[c] |
fs/isofs/inode.c isofs_hashi_common() -> partial_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | c | r __tolower |
| STR_LEN | 0 | c | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| STR_LEN | 1 | prevhash | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dentry->d_inode->i_rwsem | ||
| HALF_LOCKED2 | &dentry->d_lockref.lock |
fs/smb/client/dir.c cifs_ci_hash() -> partial_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 0-u16max |
| STR_LEN | 0 | c | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| STR_LEN | 1 | prevhash | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/exfat/namei.c exfat_d_hash() -> partial_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 0-u16max |
| STR_LEN | 0 | c | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| STR_LEN | 1 | prevhash | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | c | 0-16383 |
fs/exfat/namei.c exfat_utf8_d_hash() -> partial_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 0-u16max |
| STR_LEN | 0 | c | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| STR_LEN | 1 | prevhash | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | c | 0-16383 |
fs/efivarfs/super.c efivarfs_d_hash() -> partial_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 0-255 |
| STR_LEN | 0 | c | (-1)-s32max |
| STR_LEN | 1 | prevhash | (-1)-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | prevhash | unit_jiffy |
| HALF_LOCKED2 | global &efivars_lock |
fs/efivarfs/super.c efivarfs_d_hash() -> partial_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 0-255 |
| STR_LEN | 0 | c | (-1)-s32max |
| STR_LEN | 1 | prevhash | (-1)-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | prevhash | unit_jiffy |
| HALF_LOCKED2 | global &efivars_lock |
fs/fat/namei_vfat.c vfat_hashi() -> partial_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 0-255 |
| STR_LEN | 0 | c | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| STR_LEN | 1 | prevhash | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/affs/namei.c __affs_hash_dentry() -> partial_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 0-96,123-255 |
| STR_LEN | 0 | c | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| STR_LEN | 1 | prevhash | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dentry->d_inode->i_rwsem | ||
| HALF_LOCKED2 | &dentry->d_lockref.lock |
fs/adfs/dir.c adfs_hash() -> partial_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 0-255 |
| STR_LEN | 0 | c | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| STR_LEN | 1 | prevhash | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/hpfs/dentry.c hpfs_hash_dentry() -> partial_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 0-255 |
| STR_LEN | 0 | c | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| STR_LEN | 1 | prevhash | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/hfsplus/unicode.c hfsplus_hash_dentry() -> partial_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| STR_LEN | 0 | c | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| STR_LEN | 1 | prevhash | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/hfsplus/unicode.c hfsplus_hash_dentry() -> partial_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| STR_LEN | 0 | c | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| STR_LEN | 1 | prevhash | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/jfs/namei.c jfs_ci_hash() -> partial_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 0-255 |
| STR_LEN | 0 | c | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| STR_LEN | 1 | prevhash | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/hfs/string.c hfs_hash_dentry() -> partial_name_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 0-32,34-79,81,85,87,89-90,93,95-96,99-102,104,106,108,110-114,116,118,120,122-123,126-130,132-134,138,140,142,144,146,148-149,151-152,154-156,158,160,162,164,166-167,169-173,175-255 |
| STR_LEN | 0 | c | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| RX_PATH | |||
| TASK_NOT_RUNNING |