Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/md/md.c bind_rdev_to_array() -> sysfs_get_dirent_safe()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sd | 4096-ptr_max |
| PARAM_VALUE | 1 | name | 3071096913347284992 |
| BUF_SIZE | 1 | name | 6 |
| STR_LEN | 0 | sd | 5 |
| TERMINATED | 1 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mddev->reconfig_mutex | ||
| HALF_LOCKED2 | &of->mutex |
drivers/md/md.c bind_rdev_to_array() -> sysfs_get_dirent_safe()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sd | 4096-ptr_max |
| PARAM_VALUE | 0 | sd->__parent | 0 |
| PARAM_VALUE | 1 | name | 5266110567235133440 |
| BUF_SIZE | 1 | name | 26 |
| STR_LEN | 0 | sd | 25 |
| TERMINATED | 1 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mddev->reconfig_mutex | ||
| HALF_LOCKED2 | &of->mutex |
drivers/md/md.c bind_rdev_to_array() -> sysfs_get_dirent_safe()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sd | 4096-ptr_max |
| PARAM_VALUE | 0 | sd->__parent | 0 |
| PARAM_VALUE | 1 | name | 6536148181644509184 |
| BUF_SIZE | 1 | name | 11 |
| STR_LEN | 0 | sd | 10 |
| TERMINATED | 1 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mddev->reconfig_mutex | ||
| HALF_LOCKED2 | &of->mutex |
drivers/md/md.c level_store() -> sysfs_get_dirent_safe()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sd | 4096-ptr_max |
| PARAM_VALUE | 0 | sd->__parent | 0 |
| PARAM_VALUE | 1 | name | 7831626292208250880 |
| BUF_SIZE | 1 | name | 15 |
| STR_LEN | 0 | sd | 14 |
| CAPABLE | 0 | 21 | |
| TERMINATED | 1 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &mddev->reconfig_mutex | ||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex | ||
| TYPE_LOCK | (struct mddev)->reconfig_mutex |
drivers/md/md.c level_store() -> sysfs_get_dirent_safe()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sd | 4096-ptr_max |
| PARAM_VALUE | 0 | sd->__parent | 0 |
| PARAM_VALUE | 1 | name | 6389901215551361024 |
| BUF_SIZE | 1 | name | 9 |
| STR_LEN | 0 | sd | 8 |
| CAPABLE | 0 | 21 | |
| TERMINATED | 1 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &mddev->reconfig_mutex | ||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex | ||
| TYPE_LOCK | (struct mddev)->reconfig_mutex |
drivers/md/md.c md_alloc() -> sysfs_get_dirent_safe()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 3870187751288430592 |
| BUF_SIZE | 1 | name | 12 |
| STR_LEN | 0 | sd | 11 |
| TERMINATED | 1 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &disks_mutex |
drivers/md/md.c md_alloc() -> sysfs_get_dirent_safe()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sd | 0,4096-ptr_max |
| PARAM_VALUE | 1 | name | 7584836403033747456 |
| BUF_SIZE | 1 | name | 6 |
| STR_LEN | 0 | sd | 5 |
| TERMINATED | 1 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &disks_mutex |