Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
fs/btrfs/dev-replace.c btrfs_init_dev_replace_tgtdev() -> btrfs_alloc_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 0 |
| PARAM_VALUE | 1 | devid | 2163979504985051136 |
| PARAM_VALUE | 1 | *devid | 0 |
| PARAM_VALUE | 2 | uuid | 0 |
| PARAM_VALUE | 3 | path | 4096-ptr_max |
| PARAM_VALUE | 3 | *path | 1-255 |
| BUF_SIZE | 3 | path | 1025 |
| BUF_SIZE | 3 | path | 1025 |
| DATA_SOURCE | 3 | path | $1 |
| CAPABLE | 0 | 21 |
fs/btrfs/volumes.c add_missing_dev() -> btrfs_alloc_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 0 |
| PARAM_VALUE | 2 | uuid | 6962239839000072192,7217603942211727360 |
| PARAM_VALUE | 3 | path | 0 |
| BUF_SIZE | 2 | uuid | 16 |
| BUF_SIZE | 2 | uuid | 16 |
| DATA_SOURCE | 2 | uuid | $2 |
| HALF_LOCKED2 | global &uuid_mutex |
fs/btrfs/volumes.c btrfs_init_new_device() -> btrfs_alloc_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->exclusive_operation | 3 |
| PARAM_VALUE | 0 | fs_info->fs_devices | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->fs_devices->temp_fsid | 0 |
| PARAM_VALUE | 0 | fs_info->sb | 4096-ptr_max |
| PARAM_VALUE | 0 | fs_info->sb->s_umount.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | fs_info->super_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | devid | 0 |
| PARAM_VALUE | 2 | uuid | 0 |
| PARAM_VALUE | 3 | path | 4096-ptr_max |
| PARAM_VALUE | 3 | *path | 1-255 |
| BUF_SIZE | 3 | path | 4088 |
| BUF_SIZE | 3 | path | 4088 |
| CAPPED_DATA | 0 | fs_info->sb | 1 |
| DATA_SOURCE | 0 | fs_info | $0 |
| DATA_SOURCE | 3 | path | $1 |
| CAPABLE | 0 | 21 | |
| USER_DATA | 3 | *path | 1-255 |
| UNITS | 0 | fs_info | unit_byte |
| USER_PTR | 3 | path | |
| HALF_LOCKED2 | &sb->s_umount | ||
| HALF_LOCKED2 | global &uuid_mutex |
fs/btrfs/volumes.c clone_fs_devices() -> btrfs_alloc_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 0 |
| PARAM_VALUE | 1 | devid | 4096-ptr_max |
| BUF_SIZE | 2 | uuid | 16 |
| LOCK2 | global &uuid_mutex | ||
| HALF_LOCKED2 | &sb->s_umount |
fs/btrfs/volumes.c device_list_add() -> btrfs_alloc_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs_info | 0 |
| PARAM_VALUE | 1 | devid | 4736698663533846528 |
| PARAM_VALUE | 3 | path | 4096-ptr_max |
| PARAM_VALUE | 3 | *path | 1-255 |
| BUF_SIZE | 2 | uuid | 16 |
| BUF_SIZE | 3 | path | (-1),4088 |
| BUF_SIZE | 3 | path | (-1),4088 |
| DATA_SOURCE | 3 | path | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 3 | *path | 1-255 |
| USER_PTR | 3 | path | |
| LOCK2 | &fs_devices->device_list_mutex | ||
| LOCK2 | global &uuid_mutex | ||
| TYPE_LOCK | (struct btrfs_fs_devices)->device_list_mutex |