Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 11 files:
- block/bdev.c, line 1138
- drivers/block/drbd/drbd_nl.c, line 1714
- drivers/block/rnbd/rnbd-srv.c, line 739
- drivers/md/bcache/super.c, line 2597
- drivers/mtd/devices/block2mtd.c, line 279
- drivers/nvme/target/io-cmd-bdev.c, line 105
- drivers/target/target_core_iblock.c, line 124
- drivers/target/target_core_pscsi.c, line 370
- fs/btrfs/volumes.c
- fs/nfs/blocklayout/dev.c
- fs/super.c, line 1748
Smatch caller information:
drivers/target/target_core_pscsi.c pscsi_create_type_disk() -> bdev_file_open_by_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mode | 3 |
| PARAM_VALUE | 2 | holder | 4096-ptr_max |
| PARAM_VALUE | 3 | hops | 0 |
| BUF_SIZE | 0 | path | 512 |
| DATA_SOURCE | 2 | holder | r PSCSI_DEV |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | sh->host_lock | ||
| HALF_LOCKED2 | &buffer->mutex | ||
| HALF_LOCKED2 | &frag->frag_sem |
fs/btrfs/volumes.c btrfs_get_bdev_and_sb() -> bdev_file_open_by_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 1-u64max |
| PARAM_VALUE | 1 | mode | 1,33,35 |
| PARAM_VALUE | 2 | holder | 0 |
| PARAM_VALUE | 3 | hops | 0 |
| BUF_SIZE | 0 | path | (-1),1025,4040,4088 |
| BUF_SIZE | 0 | path | (-1),1025,4040,4088 |
| DATA_SOURCE | 0 | path | $0 |
| DATA_SOURCE | 1 | mode | $1 |
| FUZZY_MAX | 1 | mode | 35 |
| BIT_INFO | 1 | mode | 0x1,0x3f |
| HARD_MAX | 1 | mode | 35 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | *path | 0-255 |
| USER_PTR | 0 | path | |
| HALF_LOCKED2 | global &uuid_mutex |
fs/btrfs/volumes.c btrfs_open_device_deny_freeze() -> bdev_file_open_by_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mode | 2 |
| PARAM_VALUE | 2 | holder | 0 |
| PARAM_VALUE | 3 | hops | 0 |
| BUF_SIZE | 0 | path | 1025,4088 |
| BUF_SIZE | 0 | path | 1025,4088 |
| DATA_SOURCE | 0 | path | $0 |
| CAPABLE | 0 | 21 | |
| USER_DATA | 0 | *path | 0-255 |
| USER_PTR | 0 | path |
fs/btrfs/volumes.c btrfs_scan_one_device() -> bdev_file_open_by_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mode | 1 |
| PARAM_VALUE | 2 | holder | 0 |
| PARAM_VALUE | 3 | hops | 0 |
| BUF_SIZE | 0 | path | (-1),3-4004097 |
| BUF_SIZE | 0 | path | (-1),3-4004097 |
| DATA_SOURCE | 0 | path | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | *path | 0-255 |
| USER_PTR | 0 | path | |
| LOCK2 | global &uuid_mutex |
fs/super.c fs_bdev_file_open_by_path() -> bdev_file_open_by_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mode | 1,33,35 |
| PARAM_VALUE | 3 | hops | 6988679874925985792 |
| BUF_SIZE | 0 | path | (-1),65 |
| BUF_SIZE | 0 | path | (-1),65 |
| BUF_SIZE | 2 | holder | (-1),2880 |
| BUF_SIZE | 2 | holder | (-1),2880 |
| DATA_SOURCE | 0 | path | $0 |
| DATA_SOURCE | 1 | mode | $1 |
| DATA_SOURCE | 2 | holder | $2 |
| FUZZY_MAX | 1 | mode | 35 |
| STR_LEN | 0 | path | (-1),8 |
| STR_LEN | 0 | path | (-1),8 |
| STR_LEN | 1 | mode | (-1),8 |
| BIT_INFO | 1 | mode | 0x1,0x3f |
| HARD_MAX | 1 | mode | 35 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | mode | 33,35[c] |
| UNITS | 2 | holder | unit_byte |
| HALF_LOCKED2 | &sbi->devs->rwsem | ||
| HALF_LOCKED2 | global &uuid_mutex |
drivers/block/drbd/drbd_nl.c open_backing_dev() -> bdev_file_open_by_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mode | 3 |
| PARAM_VALUE | 2 | holder | 4096-ptr_max |
| PARAM_VALUE | 3 | hops | 0 |
| BUF_SIZE | 0 | path | 128 |
| BUF_SIZE | 0 | path | 128 |
| BUF_SIZE | 2 | holder | (-1),44 |
| BUF_SIZE | 2 | holder | (-1),44 |
| DATA_SOURCE | 0 | path | $1 |
| DATA_SOURCE | 2 | holder | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | *path | 0-255 |
| USER_PTR | 0 | path | |
| LOCK2 | &adm_ctx->resource->adm_mutex | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &devlink->lock | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &cb_lock | ||
| HALF_LOCKED2 | global &crypto_cfg_mutex | ||
| HALF_LOCKED2 | global &dpll_lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &net_dm_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| TYPE_LOCK | (struct drbd_resource)->adm_mutex |
fs/nfs/blocklayout/dev.c bl_open_path() -> bdev_file_open_by_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 1-u64max |
| PARAM_VALUE | 1 | mode | 3 |
| PARAM_VALUE | 2 | holder | 0 |
| PARAM_VALUE | 3 | hops | 0 |
| BUF_SIZE | 0 | path | 0-s32max |
| BUF_SIZE | 0 | path | 0-s32max |
| CAPPED_DATA | 0 | path | 1 |
| DATA_SOURCE | 0 | path | r kasprintf |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/nfs/blocklayout/dev.c bl_open_path() -> bdev_file_open_by_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 1-u64max |
| PARAM_VALUE | 1 | mode | 3 |
| PARAM_VALUE | 2 | holder | 0 |
| PARAM_VALUE | 3 | hops | 0 |
| BUF_SIZE | 0 | path | 0-s32max |
| BUF_SIZE | 0 | path | 0-s32max |
| CAPPED_DATA | 0 | path | 1 |
| DATA_SOURCE | 0 | path | r kasprintf |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/target/target_core_iblock.c iblock_configure_device() -> bdev_file_open_by_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mode | 1,3 |
| PARAM_VALUE | 2 | holder | 0,4096-ptr_max |
| PARAM_VALUE | 3 | hops | 0 |
| BUF_SIZE | 0 | path | 512 |
| FUZZY_MAX | 1 | mode | 1 |
| BIT_INFO | 1 | mode | 0x1,0x3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &buffer->mutex | ||
| HALF_LOCKED2 | &frag->frag_sem |
drivers/mtd/devices/block2mtd.c add_device() -> bdev_file_open_by_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 1-u64max |
| PARAM_VALUE | 1 | mode | 3 |
| PARAM_VALUE | 2 | holder | 4096-ptr_max |
| PARAM_VALUE | 3 | hops | 0 |
| BUF_SIZE | 2 | holder | 2624 |
| DATA_SOURCE | 0 | path | $0 |
| DATA_SOURCE | 2 | holder | r _kzalloc_noprof |
| STR_LEN | 0 | path | 0-s32max |
| STR_LEN | 0 | path | 0-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/block/rnbd/rnbd-srv.c process_msg_open() -> bdev_file_open_by_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mode | 1,3 |
| PARAM_VALUE | 2 | holder | 0 |
| PARAM_VALUE | 3 | hops | 0 |
| DATA_SOURCE | 0 | path | r rnbd_srv_get_full_path |
| FUZZY_MAX | 1 | mode | 1 |
| BIT_INFO | 1 | mode | 0x1,0x3 |
| LOCK2 | &srv_sess->lock | ||
| TYPE_LOCK | (struct rnbd_srv_session)->lock |
drivers/nvme/target/io-cmd-bdev.c nvmet_bdev_ns_enable() -> bdev_file_open_by_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mode | 3 |
| PARAM_VALUE | 2 | holder | 0 |
| PARAM_VALUE | 3 | hops | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &buffer->mutex | ||
| LOCK2 | &frag->frag_sem | ||
| LOCK2 | &subsys->lock | ||
| LOCK2 | global &nvmet_config_sem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct configfs_buffer)->mutex | ||
| TYPE_LOCK | (struct configfs_fragment)->frag_sem | ||
| TYPE_LOCK | (struct nvmet_subsys)->lock |
drivers/md/bcache/super.c register_bcache() -> bdev_file_open_by_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| PARAM_VALUE | 1 | mode | 1 |
| PARAM_VALUE | 2 | holder | 0 |
| PARAM_VALUE | 3 | hops | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |