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_send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->connection->meta.socket | 1-u64max |
| 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 |
| PARAM_VALUE | 1 | sock->socket | 1-u64max |
| PARAM_VALUE | 2 | cmd | 21-27,32,34,41,44 |
| PARAM_VALUE | 3 | header_size | 24 |
| PARAM_VALUE | 4 | data | 0 |
| PARAM_VALUE | 5 | size | 0 |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| DATA_SOURCE | 2 | cmd | $1 |
| FUZZY_MAX | 0 | peer_device->device->state.conn | 10 |
| FUZZY_MAX | 2 | cmd | 44 |
| PARAM_COMPARE | 0 | &peer_device->connection->meta | == $1 |
| UNITS | 3 | header_size | unit_byte |
| LOCK2 | 1 | &sock->mutex | |
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/block/drbd/drbd_main.c _drbd_send_uuids() -> drbd_send_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->data.socket | 1-u64max |
| 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->state.disk | 3-15 |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| PARAM_VALUE | 1 | sock->socket | 1-u64max |
| PARAM_VALUE | 2 | cmd | 12 |
| PARAM_VALUE | 3 | header_size | 48 |
| PARAM_VALUE | 4 | data | 0 |
| PARAM_VALUE | 5 | size | 0 |
| 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 |
| UNITS | 3 | header_size | unit_byte |
| LOCK2 | 1 | &sock->mutex | |
| HALF_LOCKED2 | &adm_ctx->resource->adm_mutex | ||
| HALF_LOCKED2 | device->state_mutex | ||
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/block/drbd/drbd_main.c drbd_gen_and_send_sync_uuid() -> drbd_send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->connection->data.socket | 1-u64max |
| 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 |
| PARAM_VALUE | 1 | sock->socket | 1-u64max |
| PARAM_VALUE | 2 | cmd | 15 |
| PARAM_VALUE | 3 | header_size | 8 |
| PARAM_VALUE | 4 | data | 0 |
| PARAM_VALUE | 5 | size | 0 |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
| NOCHECK_CALL | |||
| UNITS | 3 | header_size | unit_byte |
| LOCK2 | device->state_mutex | ||
| LOCK2 | 1 | &sock->mutex | |
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/block/drbd/drbd_main.c drbd_send_current_state() -> drbd_send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->connection->data.socket | 1-u64max |
| PARAM_VALUE | 0 | peer_device->device | 4096-ptr_max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| PARAM_VALUE | 1 | sock->socket | 1-u64max |
| PARAM_VALUE | 2 | cmd | 14 |
| PARAM_VALUE | 3 | header_size | 4 |
| PARAM_VALUE | 4 | data | 0 |
| PARAM_VALUE | 5 | size | 0 |
| 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 |
| UNITS | 3 | header_size | unit_byte |
| LOCK2 | 1 | &sock->mutex | |
| HALF_LOCKED2 | &adm_ctx->resource->adm_mutex | ||
| HALF_LOCKED2 | device->state_mutex | ||
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/block/drbd/drbd_main.c drbd_send_drequest() -> drbd_send_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->data.socket | 1-u64max |
| PARAM_VALUE | 0 | *peer_device->device->rs_plan_s->values | s32min-s32max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| PARAM_VALUE | 1 | sock->socket | 1-u64max |
| PARAM_VALUE | 2 | cmd | 8-9,50 |
| PARAM_VALUE | 3 | header_size | 24 |
| PARAM_VALUE | 4 | data | 0 |
| PARAM_VALUE | 5 | size | 0 |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| DATA_SOURCE | 2 | cmd | $1 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
| BIT_INFO | 2 | cmd | 0x0,0x3b |
| UNITS | 3 | header_size | unit_byte |
| LOCK2 | 1 | &sock->mutex | |
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/block/drbd/drbd_main.c drbd_send_drequest_csum() -> drbd_send_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->data.socket | 1-u64max |
| 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 |
| PARAM_VALUE | 1 | sock->socket | 1-u64max |
| PARAM_VALUE | 2 | cmd | 31,33 |
| PARAM_VALUE | 3 | header_size | 24 |
| PARAM_VALUE | 4 | data | 16,4096-ptr_max |
| PARAM_VALUE | 5 | size | 0-4000000 |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| DATA_SOURCE | 2 | cmd | $5 |
| DATA_SOURCE | 4 | data | $3 |
| DATA_SOURCE | 5 | size | $4 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
| HARD_MAX | 2 | cmd | 33 |
| UNITS | 3 | header_size | unit_byte |
| BYTE_COUNT | 4 | ==data5 | 8050 |
| LOCK2 | 1 | &sock->mutex | |
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/block/drbd/drbd_main.c drbd_send_out_of_sync() -> drbd_send_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->data.socket | 1-u64max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| PARAM_VALUE | 1 | sock->socket | 1-u64max |
| PARAM_VALUE | 2 | cmd | 40 |
| PARAM_VALUE | 3 | header_size | 16 |
| PARAM_VALUE | 4 | data | 0 |
| PARAM_VALUE | 5 | size | 0 |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
| UNITS | 3 | header_size | unit_byte |
| LOCK2 | 1 | &sock->mutex | |
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/block/drbd/drbd_main.c drbd_send_ov_request() -> drbd_send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->connection->data.socket | 1-u64max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| PARAM_VALUE | 1 | sock->socket | 1-u64max |
| PARAM_VALUE | 2 | cmd | 30 |
| PARAM_VALUE | 3 | header_size | 24 |
| PARAM_VALUE | 4 | data | 0 |
| PARAM_VALUE | 5 | size | 0 |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
| UNITS | 3 | header_size | unit_byte |
| LOCK2 | 1 | &sock->mutex | |
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/block/drbd/drbd_main.c drbd_send_rs_deallocated() -> drbd_send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->connection->data.socket | 1-u64max |
| 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 |
| PARAM_VALUE | 1 | sock->socket | 1-u64max |
| PARAM_VALUE | 2 | cmd | 51 |
| PARAM_VALUE | 3 | header_size | 16 |
| PARAM_VALUE | 4 | data | 0 |
| PARAM_VALUE | 5 | size | 0 |
| 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 |
| UNITS | 3 | header_size | unit_byte |
| LOCK2 | 1 | &sock->mutex | |
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/block/drbd/drbd_main.c drbd_send_sizes() -> drbd_send_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->data.socket | 1-u64max |
| PARAM_VALUE | 0 | peer_device->device | 4096-ptr_max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| PARAM_VALUE | 1 | sock->socket | 1-u64max |
| PARAM_VALUE | 2 | cmd | 13 |
| PARAM_VALUE | 3 | header_size | 32,56 |
| PARAM_VALUE | 4 | data | 0 |
| PARAM_VALUE | 5 | size | 0 |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| FUZZY_MAX | 3 | header_size | 32 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | peer_device->device->minor | 0-1048575 |
| UNITS | 3 | header_size | unit_byte |
| LOCK2 | 1 | &sock->mutex | |
| HALF_LOCKED2 | &adm_ctx->resource->adm_mutex | ||
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/block/drbd/drbd_main.c drbd_send_sr_reply() -> drbd_send_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->meta.socket | 1-u64max |
| PARAM_VALUE | 0 | peer_device->device | 4096-ptr_max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| PARAM_VALUE | 1 | sock->socket | 1-u64max |
| PARAM_VALUE | 2 | cmd | 29 |
| PARAM_VALUE | 3 | header_size | 4 |
| PARAM_VALUE | 4 | data | 0 |
| PARAM_VALUE | 5 | size | 0 |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->meta | == $1 |
| NOCHECK_CALL | |||
| UNITS | 3 | header_size | unit_byte |
| LOCK2 | 1 | &sock->mutex | |
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/block/drbd/drbd_main.c drbd_send_state() -> drbd_send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->connection->data.socket | 1-u64max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| PARAM_VALUE | 1 | sock->socket | 1-u64max |
| PARAM_VALUE | 2 | cmd | 14 |
| PARAM_VALUE | 3 | header_size | 4 |
| PARAM_VALUE | 4 | data | 0 |
| PARAM_VALUE | 5 | size | 0 |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
| UNITS | 3 | header_size | unit_byte |
| LOCK2 | 1 | &sock->mutex | |
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/block/drbd/drbd_main.c drbd_send_state_req() -> drbd_send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->connection->data.socket | 1-u64max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| PARAM_VALUE | 1 | sock->socket | 1-u64max |
| PARAM_VALUE | 2 | cmd | 18 |
| PARAM_VALUE | 3 | header_size | 8 |
| PARAM_VALUE | 4 | data | 0 |
| PARAM_VALUE | 5 | size | 0 |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 3 | header_size | unit_byte |
| LOCK2 | 1 | &sock->mutex | |
| HALF_LOCKED2 | &adm_ctx->resource->adm_mutex | ||
| HALF_LOCKED2 | device->state_mutex | ||
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/block/drbd/drbd_main.c drbd_send_sync_param() -> drbd_send_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->data.socket | 1-u64max |
| PARAM_VALUE | 0 | peer_device->device | 4096-ptr_max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| PARAM_VALUE | 1 | sock->socket | 1-u64max |
| PARAM_VALUE | 2 | cmd | 10,35 |
| PARAM_VALUE | 4 | data | 0 |
| PARAM_VALUE | 5 | size | 0 |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| FUZZY_MAX | 2 | cmd | 35 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
| BIT_INFO | 2 | cmd | 0x2,0x2b |
| HARD_MAX | 2 | cmd | 35 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | peer_device->device->minor | 0-1048575 |
| UNITS | 3 | header_size | unit_byte |
| LOCK2 | &adm_ctx->resource->adm_mutex | ||
| LOCK2 | 1 | &sock->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 | ||
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/block/drbd/drbd_worker.c pd_send_unplug_remote() -> drbd_send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | peer_device | 4096-ptr_max |
| PARAM_VALUE | 0 | peer_device->connection->data.socket | 1-u64max |
| PARAM_VALUE | 1 | sock | 4096-ptr_max |
| PARAM_VALUE | 1 | sock->socket | 1-u64max |
| PARAM_VALUE | 2 | cmd | 7 |
| PARAM_VALUE | 3 | header_size | 0 |
| PARAM_VALUE | 4 | data | 0 |
| PARAM_VALUE | 5 | size | 0 |
| BUF_SIZE | 1 | sock | 176 |
| DATA_SOURCE | 0 | peer_device | $0 |
| PARAM_COMPARE | 0 | &peer_device->connection->data | == $1 |
| LOCK2 | 1 | &sock->mutex | |
| TYPE_LOCK | (struct drbd_socket)->mutex |