Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/block/drbd/drbd_main.c conn_send_sr_reply() -> conn_prepare_command()

Type Parameter Key Value
PARAM_VALUE 0 connection 4096-ptr_max
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 0 connection->data.socket->sk->sk_backlog.head->extensions->refcnt.refs.counter 1
PARAM_VALUE 0 connection->data.socket->sk->sk_bpf_storage->owner_refcnt.refs.counter s32min-s32max
PARAM_VALUE 0 connection->data.socket->sk->sk_user_data->work.flags 0-4294967295
PARAM_VALUE 0 connection->receiver.reset_cpu_mask 0
PARAM_VALUE 0 connection->receiver.t_state 1
PARAM_VALUE 0 connection->receiver_plug.cb_list.next 4096-ptr_max
PARAM_VALUE 0 connection->receiver_plug.cb_list.next->next 4096-ptr_max
PARAM_VALUE 0 connection->receiver_plug.cb_list.prev 4096-ptr_max
PARAM_VALUE 0 connection->receiver_plug.cb_list.prev->next 4096-ptr_max
PARAM_VALUE 0 connection->receiver_plug.cb_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 connection->receiver_plug.cur_ktime 0
PARAM_VALUE 0 connection->receiver_plug.has_elevator 0
PARAM_VALUE 0 connection->receiver_plug.nr_ios 1-32
PARAM_VALUE 0 connection->receiver_plug.rq_count 0
PARAM_VALUE 0 *connection->data.socket->sk->sk_backlog.head->dev->name 0-255
PARAM_VALUE 1 sock 4096-ptr_max
BUF_SIZE 1 sock 176
DATA_SOURCE 0 connection $0
PARAM_COMPARE 0 &connection->meta == $1

drivers/block/drbd/drbd_main.c conn_send_state_req() -> conn_prepare_command()

Type Parameter Key Value
PARAM_VALUE 0 connection 4096-ptr_max
PARAM_VALUE 0 connection->cstate 9
PARAM_VALUE 0 connection->cstate_mutex.dep_map->name 0-255
PARAM_VALUE 0 connection->cstate_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 connection->cstate_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 connection->cstate_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 connection->cstate_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 connection->cstate_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 connection->cstate_mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 0 connection->resource 4096-ptr_max
PARAM_VALUE 0 connection->resource->req_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 sock 4096-ptr_max
BUF_SIZE 1 sock 176
CAPPED_DATA 0 connection->peer_devices.idr_base 1
DATA_SOURCE 0 connection $0
STR_LEN 0 connection (-1)-0
STR_LEN 0 connection (-1)-0
PARAM_COMPARE 0 &connection->data == $1
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->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_receive_queue.prev->end
NO_OVERFLOW_SIMPLE 0 connection->meta.socket->sk->sk_receive_queue.prev->len
NO_OVERFLOW_SIMPLE 0 connection->meta.socket->sk->sk_receive_queue.prev->next->end
NO_OVERFLOW_SIMPLE 0 connection->meta.socket->sk->sk_receive_queue.prev->next->len
NO_OVERFLOW_SIMPLE 0 connection->meta.socket->sk->sk_write_queue.next->end
NO_OVERFLOW_SIMPLE 0 connection->meta.socket->sk->sk_write_queue.next->prev->end
LOCK2 0 &connection->cstate_mutex
HALF_LOCKED2 &device->resource->req_lock
HALF_LOCKED2 0 &connection->data.mutex
HALF_LOCKED2 0 &connection->resource->conf_update
TYPE_LOCK (struct drbd_connection)->cstate_mutex

drivers/block/drbd/drbd_main.c drbd_prepare_command() -> conn_prepare_command()

Type Parameter Key Value
PARAM_VALUE 1 sock 4096-ptr_max
BUF_SIZE 1 sock 176
DATA_SOURCE 1 sock $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_b_ack() -> conn_prepare_command()

Type Parameter Key Value
PARAM_VALUE 0 connection 4096-ptr_max
PARAM_VALUE 0 connection->cstate 9-u32max
PARAM_VALUE 1 sock 4096-ptr_max
BUF_SIZE 1 sock 176
DATA_SOURCE 0 connection $0
FUZZY_MAX 0 connection->cstate 9
PARAM_COMPARE 0 &connection->meta == $1

drivers/block/drbd/drbd_main.c drbd_send_ping() -> conn_prepare_command()

Type Parameter Key Value
PARAM_VALUE 1 sock 4096-ptr_max
BUF_SIZE 1 sock 176
DATA_SOURCE 0 connection $0
PARAM_COMPARE 0 &connection->meta == $1

drivers/block/drbd/drbd_main.c drbd_send_ping_ack() -> conn_prepare_command()

Type Parameter Key Value
PARAM_VALUE 1 sock 4096-ptr_max
BUF_SIZE 1 sock 176
DATA_SOURCE 0 connection $0
PARAM_COMPARE 0 &connection->meta == $1

drivers/block/drbd/drbd_receiver.c drbd_send_features() -> conn_prepare_command()

Type Parameter Key Value
PARAM_VALUE 1 sock 4096-ptr_max
BUF_SIZE 1 sock 176
DATA_SOURCE 0 connection $0
PARAM_COMPARE 0 &connection->data == $1

drivers/block/drbd/drbd_receiver.c send_first_packet() -> conn_prepare_command()

Type Parameter Key Value
PARAM_VALUE 0 connection 4096-ptr_max
PARAM_VALUE 0 connection->agreed_pro_version 80
PARAM_VALUE 0 connection->cstate_mutex.dep_map->name 0-255
PARAM_VALUE 0 connection->cstate_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 connection->cstate_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 connection->cstate_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 connection->cstate_mutex.first_waiter->task->usage.refs.counter s32min-s32max
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 0 connection->net_conf 4096-ptr_max
PARAM_VALUE 0 connection->resource 4096-ptr_max
PARAM_VALUE 0 connection->resource->req_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 sock 6466564936397709312,7497066531897753600
PARAM_VALUE 1 sock->socket 4096-ptr_max
CAPPED_DATA 0 connection->net_conf 1
CAPPED_DATA 0 connection->peer_devices.idr_base 1
CAPPED_DATA 0 connection->resource->devices.idr_base 1
DATA_SOURCE 0 connection $0
DATA_SOURCE 1 sock $1

drivers/block/drbd/drbd_worker.c drbd_send_barrier() -> conn_prepare_command()

Type Parameter Key Value
PARAM_VALUE 0 connection 4096-ptr_max
PARAM_VALUE 0 connection->send.current_epoch_writes 1-u32max
PARAM_VALUE 0 connection->send.seen_any_write_yet 1
PARAM_VALUE 1 sock 4096-ptr_max
BUF_SIZE 1 sock 176
DATA_SOURCE 0 connection $0
PARAM_COMPARE 0 &connection->data == $1