Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/block/drbd/drbd_main.c _drbd_send_ack() -> drbd_prepare_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->device->state.conn | 10-31 |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| FUZZY_MAX | 0 | peer_device->device->state.conn | 10 |
| PARAM_COMPARE | 0 | &peer_device->connection->meta | == $1 |
drivers/block/drbd/drbd_main.c _drbd_send_uuids() -> drbd_prepare_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->device->state.disk | 3-15 |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | peer_device->device->minor | 0-1048575 |
| HALF_LOCKED2 | &adm_ctx->resource->adm_mutex | ||
| HALF_LOCKED2 | device->state_mutex |
drivers/block/drbd/drbd_main.c drbd_gen_and_send_sync_uuid() -> drbd_prepare_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->device->ldev | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->device->ldev->md.uuid | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->device->ldev->md.uuid_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | peer_device->device->md_sync_timer.entry->pprev | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->device->resource | 4096-ptr_max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
| LOCK2 | device->state_mutex |
drivers/block/drbd/drbd_main.c drbd_send_block() -> drbd_prepare_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
drivers/block/drbd/drbd_main.c drbd_send_current_state() -> drbd_prepare_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | peer_device->device->minor | 0-1048575 |
| HALF_LOCKED2 | &adm_ctx->resource->adm_mutex | ||
| HALF_LOCKED2 | device->state_mutex |
drivers/block/drbd/drbd_main.c drbd_send_dblock() -> drbd_prepare_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->connection | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->connection->send.current_epoch_writes | 1 |
| PARAM_VALUE | 0 | peer_device->connection->send.seen_any_write_yet | 1 |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
drivers/block/drbd/drbd_main.c drbd_send_drequest() -> drbd_prepare_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->connection | 4096-ptr_max |
| PARAM_VALUE | 0 | *peer_device->device->rs_plan_s->values | s32min-s32max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
drivers/block/drbd/drbd_main.c drbd_send_drequest_csum() -> drbd_prepare_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->connection | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->device->al_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
drivers/block/drbd/drbd_main.c drbd_send_out_of_sync() -> drbd_prepare_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->connection | 4096-ptr_max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
drivers/block/drbd/drbd_main.c drbd_send_ov_request() -> drbd_prepare_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
drivers/block/drbd/drbd_main.c drbd_send_rs_deallocated() -> drbd_prepare_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->device->state.conn | 0-21,23-31 |
| PARAM_VALUE | 0 | peer_device->device->state.pdsk | 4-15 |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| FUZZY_MAX | 0 | peer_device->device->state.pdsk | 4 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
drivers/block/drbd/drbd_main.c drbd_send_sizes() -> drbd_prepare_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | peer_device->device->minor | 0-1048575 |
| HALF_LOCKED2 | &adm_ctx->resource->adm_mutex |
drivers/block/drbd/drbd_main.c drbd_send_sr_reply() -> drbd_prepare_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->connection | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->device | 4096-ptr_max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->meta | == $1 |
drivers/block/drbd/drbd_main.c drbd_send_state() -> drbd_prepare_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
drivers/block/drbd/drbd_main.c drbd_send_state_req() -> drbd_prepare_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &adm_ctx->resource->adm_mutex | ||
| HALF_LOCKED2 | device->state_mutex |
drivers/block/drbd/drbd_main.c drbd_send_sync_param() -> drbd_prepare_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->connection | 4096-ptr_max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | peer_device->device->minor | 0-1048575 |
| 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 | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct drbd_resource)->adm_mutex |
drivers/block/drbd/drbd_worker.c pd_send_unplug_remote() -> drbd_prepare_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |