Defined in 2 files as a function:
- drivers/block/drbd/drbd_main.c, line 608 (as a function)
- drivers/memory/brcmstb_dpfe.c, line 433 (as a function)
Referenced in 2 files:
Smatch caller information:
drivers/block/drbd/drbd_main.c __conn_send_command() -> __send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | vnr | 0 |
| PARAM_VALUE | 2 | sock | 4096-ptr_max |
| PARAM_VALUE | 2 | sock->socket | 1-u64max |
| PARAM_VALUE | 3 | cmd | 3,11,18-20,28-29,42-43,45,65521-65522,65534 |
| PARAM_VALUE | 5 | data | 0 |
| PARAM_VALUE | 6 | size | 0 |
| BUF_SIZE | 2 | sock | (-1),176 |
| BUF_SIZE | 2 | sock | (-1),176 |
| DATA_SOURCE | 0 | connection | $0 |
| DATA_SOURCE | 2 | sock | $1 |
| DATA_SOURCE | 3 | cmd | $2 |
| DATA_SOURCE | 4 | header_size | $3 |
| DATA_SOURCE | 5 | data | $4 |
| DATA_SOURCE | 6 | size | $5 |
| FUZZY_MAX | 3 | cmd | 43 |
| STR_LEN | 0 | connection | (-1)-0 |
| STR_LEN | 0 | connection | (-1)-0 |
| HARD_MAX | 3 | cmd | 65534 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | connection->ack_sender->rescuer | |
| NO_OVERFLOW_SIMPLE | 0 | connection->ack_sender->rescuer->task->dl.dl_runtime | |
| NO_OVERFLOW_SIMPLE | 0 | connection->ack_sender->rescuer->task->dl.pi_se->dl_runtime | |
| NO_OVERFLOW_SIMPLE | 0 | connection->data.socket->sk->sk_backlog.len | |
| NO_OVERFLOW_SIMPLE | 0 | connection->data.socket->sk->sk_receive_queue.prev->end | |
| NO_OVERFLOW_SIMPLE | 0 | connection->data.socket->sk->sk_receive_queue.prev->len | |
| NO_OVERFLOW_SIMPLE | 0 | connection->data.socket->sk->sk_receive_queue.prev->next->end | |
| NO_OVERFLOW_SIMPLE | 0 | connection->data.socket->sk->sk_receive_queue.prev->next->len | |
| NO_OVERFLOW_SIMPLE | 0 | connection->data.socket->sk->sk_receive_queue.prev->next->tail | |
| NO_OVERFLOW_SIMPLE | 0 | connection->data.socket->sk->sk_receive_queue.prev->next->truesize | |
| NO_OVERFLOW_SIMPLE | 0 | connection->data.socket->sk->sk_receive_queue.prev->tail | |
| NO_OVERFLOW_SIMPLE | 0 | connection->data.socket->sk->sk_receive_queue.prev->truesize | |
| NO_OVERFLOW_SIMPLE | 0 | connection->data.socket->sk->sk_write_queue.next->end | |
| NO_OVERFLOW_SIMPLE | 0 | connection->data.socket->sk->sk_write_queue.next->len | |
| NO_OVERFLOW_SIMPLE | 0 | connection->data.socket->sk->sk_write_queue.next->prev->end | |
| NO_OVERFLOW_SIMPLE | 0 | connection->data.socket->sk->sk_write_queue.next->prev->len | |
| NO_OVERFLOW_SIMPLE | 0 | connection->data.socket->sk->sk_write_queue.next->prev->tail | |
| NO_OVERFLOW_SIMPLE | 0 | connection->data.socket->sk->sk_write_queue.next->prev->truesize | |
| NO_OVERFLOW_SIMPLE | 0 | connection->data.socket->sk->sk_write_queue.next->tail | |
| NO_OVERFLOW_SIMPLE | 0 | connection->data.socket->sk->sk_write_queue.next->truesize | |
| NO_OVERFLOW_SIMPLE | 0 | connection->meta.socket->sk->sk_backlog.len | |
| UNITS | 4 | header_size | unit_byte |
| HALF_LOCKED2 | 0 | &connection->cstate_mutex | |
| HALF_LOCKED2 | 0 | &connection->data.mutex | |
| HALF_LOCKED2 | 0 | &connection->resource->conf_update | |
| HALF_LOCKED2 | 2 | &sock->mutex | |
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/block/drbd/drbd_main.c drbd_send_block() -> __send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | connection | 4096-ptr_max |
| PARAM_VALUE | 0 | connection->data.socket | 1-u64max |
| PARAM_VALUE | 2 | sock | 4096-ptr_max |
| PARAM_VALUE | 2 | sock->socket | 1-u64max |
| PARAM_VALUE | 3 | cmd | 1-2 |
| PARAM_VALUE | 4 | header_size | 24-2147483671 |
| PARAM_VALUE | 5 | data | 0 |
| BUF_SIZE | 2 | sock | 176 |
| DATA_SOURCE | 3 | cmd | $1 |
| PARAM_COMPARE | 0 | &connection->data | == $2 |
| HARD_MAX | 3 | cmd | 2 |
| UNITS | 4 | header_size | unit_byte |
| UNITS | 6 | size | unit_byte |
| LOCK2 | 2 | &sock->mutex | |
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/block/drbd/drbd_main.c drbd_send_command() -> __send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | sock | 4096-ptr_max |
| PARAM_VALUE | 2 | sock->socket | 1-u64max |
| PARAM_VALUE | 3 | cmd | 7-10,12-15,18,21-27,29-35,40-41,44,50-51 |
| PARAM_VALUE | 5 | data | 0,16,4096-ptr_max |
| PARAM_VALUE | 6 | size | 0-4000000 |
| BUF_SIZE | 2 | sock | 176 |
| DATA_SOURCE | 2 | sock | $1 |
| DATA_SOURCE | 3 | cmd | $2 |
| DATA_SOURCE | 4 | header_size | $3 |
| DATA_SOURCE | 5 | data | $4 |
| DATA_SOURCE | 6 | size | $5 |
| FUZZY_MAX | 3 | cmd | 44 |
| PARAM_COMPARE | 5 | data | == $6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 4 | header_size | unit_byte |
| BYTE_COUNT | 5 | ==data6 | 8050 |
| LOCK2 | 2 | &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_dblock() -> __send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | connection | 4096-ptr_max |
| PARAM_VALUE | 0 | connection->data.socket | 1-u64max |
| PARAM_VALUE | 0 | connection->send.current_epoch_writes | 1 |
| PARAM_VALUE | 0 | connection->send.seen_any_write_yet | 1 |
| PARAM_VALUE | 2 | sock | 4096-ptr_max |
| PARAM_VALUE | 2 | sock->socket | 1-u64max |
| PARAM_VALUE | 3 | cmd | 49,54 |
| PARAM_VALUE | 4 | header_size | 28 |
| PARAM_VALUE | 5 | data | 0 |
| PARAM_VALUE | 6 | size | 0 |
| BUF_SIZE | 2 | sock | 176 |
| FUZZY_MAX | 3 | cmd | 54 |
| PARAM_COMPARE | 0 | &connection->data | == $2 |
| BIT_INFO | 3 | cmd | 0x30,0x37 |
| HARD_MAX | 3 | cmd | 54 |
| UNITS | 4 | header_size | unit_byte |
| LOCK2 | 2 | &sock->mutex | |
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/block/drbd/drbd_main.c drbd_send_dblock() -> __send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | connection | 4096-ptr_max |
| PARAM_VALUE | 0 | connection->data.socket | 1-u64max |
| PARAM_VALUE | 0 | connection->send.current_epoch_writes | 1 |
| PARAM_VALUE | 0 | connection->send.seen_any_write_yet | 1 |
| PARAM_VALUE | 2 | sock | 4096-ptr_max |
| PARAM_VALUE | 2 | sock->socket | 1-u64max |
| PARAM_VALUE | 3 | cmd | 0 |
| PARAM_VALUE | 4 | header_size | 24-2147483671 |
| PARAM_VALUE | 5 | data | 0 |
| BUF_SIZE | 2 | sock | 176 |
| PARAM_COMPARE | 0 | &connection->data | == $2 |
| UNITS | 4 | header_size | unit_byte |
| UNITS | 6 | size | unit_byte |
| LOCK2 | 2 | &sock->mutex | |
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/block/drbd/drbd_main.c send_bitmap_rle_or_plain() -> __send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | connection | 4096-ptr_max |
| PARAM_VALUE | 0 | connection->data.mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | connection->data.mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | connection->data.mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | connection->data.mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | connection->data.socket | 1-u64max |
| PARAM_VALUE | 0 | connection->data.socket->sk->ns_tracker->alloc_stack_handle | 0-4294967295 |
| PARAM_VALUE | 0 | connection->data.socket->sk->ns_tracker->dead | 0-1 |
| PARAM_VALUE | 0 | connection->data.socket->sk->ns_tracker->free_stack_handle | 0-4294967295 |
| PARAM_VALUE | 2 | sock | 4096-ptr_max |
| PARAM_VALUE | 2 | sock->socket | 1-u64max |
| PARAM_VALUE | 3 | cmd | 36 |
| PARAM_VALUE | 4 | header_size | 2-2147483648 |
| PARAM_VALUE | 5 | data | 0 |
| PARAM_VALUE | 6 | size | 0 |
| BUF_SIZE | 2 | sock | 176 |
| CAPPED_DATA | 0 | connection->data.socket | 1 |
| PARAM_COMPARE | 0 | &connection->data | == $2 |
| UNITS | 4 | header_size | unit_byte |
| LOCK2 | &sock->mutex | ||
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/block/drbd/drbd_main.c send_bitmap_rle_or_plain() -> __send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | connection | 4096-ptr_max |
| PARAM_VALUE | 0 | connection->data.mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | connection->data.mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | connection->data.mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | connection->data.mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | connection->data.socket | 1-u64max |
| PARAM_VALUE | 0 | connection->data.socket->sk->ns_tracker->alloc_stack_handle | 0-4294967295 |
| PARAM_VALUE | 0 | connection->data.socket->sk->ns_tracker->dead | 0-1 |
| PARAM_VALUE | 0 | connection->data.socket->sk->ns_tracker->free_stack_handle | 0-4294967295 |
| PARAM_VALUE | 2 | sock | 4096-ptr_max |
| PARAM_VALUE | 2 | sock->socket | 1-u64max |
| PARAM_VALUE | 3 | cmd | 4 |
| PARAM_VALUE | 4 | header_size | 0-4088 |
| PARAM_VALUE | 5 | data | 0 |
| PARAM_VALUE | 6 | size | 0 |
| BUF_SIZE | 2 | sock | 176 |
| CAPPED_DATA | 0 | connection->data.socket | 1 |
| CAPPED_DATA | 4 | header_size | 1 |
| PARAM_COMPARE | 0 | &connection->data | == $2 |
| LOCK2 | &sock->mutex | ||
| TYPE_LOCK | (struct drbd_socket)->mutex |
drivers/memory/brcmstb_dpfe.c brcmstb_dpfe_download_firmware() -> __send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | connection | 4096-ptr_max |
| PARAM_VALUE | 0 | connection->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | connection->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | connection->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | connection->lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | connection->lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | connection->lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | connection->lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | connection->lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | connection->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | vnr | 0 |
| BUF_SIZE | 0 | connection | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | connection | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | connection->dev | (-1),1616 |
| BUF_SIZE | 2 | sock | 64 |
| DATA_SOURCE | 0 | connection | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | connection | unit_byte |
drivers/memory/brcmstb_dpfe.c generic_show() -> __send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | connection | 1-u64max |
| PARAM_VALUE | 1 | vnr | 0-2 |
| BUF_SIZE | 0 | connection | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | connection | s32min-(-2),1-s32max |
| BUF_SIZE | 2 | sock | 64 |
| BUF_SIZE | 2 | sock | 64 |
| DATA_SOURCE | 0 | connection | $2 |
| DATA_SOURCE | 1 | vnr | $0 |
| DATA_SOURCE | 2 | sock | $1 |
| HARD_MAX | 1 | vnr | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | connection | unit_byte |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/memory/brcmstb_dpfe.c store_refresh() -> __send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | vnr | 1 |
| BUF_SIZE | 0 | connection | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | connection | s32min-(-2),1-s32max |
| BUF_SIZE | 2 | sock | 64 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | connection | unit_byte |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |