Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 5 files:

Smatch caller information:

drivers/vhost/vhost.c vhost_vq_is_setup() -> vhost_vq_access_ok()

Type Parameter Key Value
PARAM_VALUE 0 vq 4096-ptr_max
PARAM_VALUE 0 vq->avail 1-u64max
PARAM_VALUE 0 vq->desc 1-u64max
PARAM_VALUE 0 vq->used 1-u64max
BUF_SIZE 0 vq 18984
DATA_SOURCE 0 vq $0
LOCK2 &vs->dev.mutex
TYPE_LOCK (struct vhost_dev)->mutex

drivers/vhost/net.c vhost_net_set_backend() -> vhost_vq_access_ok()

Type Parameter Key Value
PARAM_VALUE 0 vq 4096-ptr_max
PARAM_VALUE 0 vq->mutex.dep_map->name 0-255
PARAM_VALUE 0 vq->mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 vq->mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 vq->mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 vq->mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 vq->mutex.wait_lock.owner (-1)
PARAM_VALUE 0 vq->mutex.wait_lock.owner_cpu u32max
BUF_SIZE 0 vq 18984
CAPPED_DATA 0 &vq->mutex 1
LOCK2 &n->dev.mutex
LOCK2 0 &vq->mutex
TYPE_LOCK (struct vhost_dev)->mutex
TYPE_LOCK (struct vhost_virtqueue)->mutex

drivers/vhost/vsock.c vhost_vsock_start() -> vhost_vq_access_ok()

Type Parameter Key Value
PARAM_VALUE 0 vq 4096-ptr_max
PARAM_VALUE 0 vq->mutex.dep_map->name 0-255
PARAM_VALUE 0 vq->mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 vq->mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 vq->mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 vq->mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 vq->mutex.wait_lock.owner (-1)
PARAM_VALUE 0 vq->mutex.wait_lock.owner_cpu u32max
CAPPED_DATA 0 &vq->mutex 1
LOCK2 &vsock->dev.mutex
LOCK2 0 &vq->mutex
TYPE_LOCK (struct vhost_dev)->mutex
TYPE_LOCK (struct vhost_virtqueue)->mutex

drivers/vhost/scsi.c vhost_scsi_clear_endpoint() -> vhost_vq_access_ok()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &vs->dev.mutex
TYPE_LOCK (struct vhost_dev)->mutex

drivers/vhost/scsi.c vhost_scsi_set_endpoint() -> vhost_vq_access_ok()

Type Parameter Key Value
LOCK2 &vs->dev.mutex
TYPE_LOCK (struct vhost_dev)->mutex