Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

drivers/block/drbd/drbd_state.c drbd_req_state() -> drbd_md_get_buffer()

Type Parameter Key Value
PARAM_VALUE 0 device->vdisk->part0->bd_device.kobj.parent->sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 device->vdisk->part0->bd_device.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 device->vdisk->part0->bd_device.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 device->vdisk->queue->mq_kobj->sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 device->vdisk->queue_kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 1 intent 3977040146774781952
BUF_SIZE 1 intent 15
DATA_SOURCE 0 device $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &adm_ctx->resource->adm_mutex
HALF_LOCKED2 0 device->state_mutex

drivers/block/drbd/drbd_nl.c drbd_determine_dev_size() -> drbd_md_get_buffer()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->ldev 0,4096-ptr_max
PARAM_VALUE 0 device->resource 4096-ptr_max
PARAM_VALUE 1 intent 2322461615860039680
BUF_SIZE 0 device->ldev (-1),208
BUF_SIZE 0 device->resync (-1),176
BUF_SIZE 0 device->rs_plan_s (-1),12-s32max
BUF_SIZE 1 intent 24
CAPPED_DATA 0 device 1
CAPPED_DATA 0 device->state.disk 1
DATA_SOURCE 0 device $0
STR_LEN 0 device->resync->name (-1),6
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 device->act_log->nr_elements
NO_OVERFLOW_SIMPLE 0 device->resync->nr_elements
HALF_LOCKED2 &adm_ctx->resource->adm_mutex

drivers/block/drbd/drbd_actlog.c al_write_transaction() -> drbd_md_get_buffer()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->act_log 4096-ptr_max
PARAM_VALUE 0 device->act_log->pending_changes 1-u32max
PARAM_VALUE 0 device->al_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 device->ldev 4096-ptr_max
PARAM_VALUE 0 device->state.disk 4-15
PARAM_VALUE 1 intent 8027704850769805312
BUF_SIZE 1 intent 21
DATA_SOURCE 0 device $0
FUZZY_MAX 0 device->state.disk 4
UNITS 0 device unit_byte

drivers/block/drbd/drbd_main.c drbd_md_read() -> drbd_md_get_buffer()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->misc_wait.lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 device->rs_failed 0
PARAM_VALUE 0 device->rs_pending_cnt.counter 0
PARAM_VALUE 0 device->rs_total 0
PARAM_VALUE 0 device->state.disk 0
PARAM_VALUE 0 device->vdisk->slave_bdevs.next 4096-ptr_max
PARAM_VALUE 0 device->vdisk->slave_bdevs.next->next 4096-ptr_max
PARAM_VALUE 0 device->vdisk->slave_bdevs.next->prev 4096-ptr_max
PARAM_VALUE 0 device->vdisk->slave_dir 1-u64max
PARAM_VALUE 1 intent 7617782077979000832
BUF_SIZE 1 intent 13
CAPPED_DATA 0 device 1
CAPPED_DATA 0 device->vdisk 1
DATA_SOURCE 0 device $0
RX_PATH
TASK_NOT_RUNNING
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

drivers/block/drbd/drbd_main.c drbd_md_sync() -> drbd_md_get_buffer()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->md_sync_timer.entry.pprev 0
PARAM_VALUE 0 device->md_sync_timer.flags 0-4194302
PARAM_VALUE 0 device->md_sync_timer.function 0
PARAM_VALUE 0 device->state.disk 2-15
PARAM_VALUE 1 intent 8169742862456565760
BUF_SIZE 0 device->ldev (-1),208
BUF_SIZE 0 device->p_uuid (-1),8
BUF_SIZE 0 device->resync (-1),176
BUF_SIZE 0 device->rs_plan_s (-1),12-s32max
BUF_SIZE 1 intent 13
CAPPED_DATA 0 device 1
DATA_SOURCE 0 device $0
STR_LEN 0 device (-1),8,11-12,17,19-20,23,26-27,29,31-32
STR_LEN 0 device (-1),8,11-12,17,19-20,23,26-27,29,31-32
STR_LEN 0 device->resync->name (-1),6
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 device->act_log->nr_elements
NO_OVERFLOW_SIMPLE 0 device->resync->nr_elements
HALF_LOCKED2 &adm_ctx->resource->adm_mutex
HALF_LOCKED2 &sock->mutex
HALF_LOCKED2 device->state_mutex
HALF_LOCKED2 0 device->state_mutex