Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- drivers/vhost/net.c, line 1592
- drivers/vhost/scsi.c, line 2080
- drivers/vhost/test.c
- drivers/vhost/vhost.c, line 2670
- drivers/vhost/vsock.c, line 631
Smatch caller information:
drivers/vhost/net.c vhost_net_set_backend() -> vhost_vq_init_access()
| 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 |
| PARAM_VALUE | 0 | vq->private_data | 0,4096-ptr_max |
| PARAM_VALUE | 0 | vq->umem | 1-u64max |
| 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_init_access()
| 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 |
| PARAM_VALUE | 0 | vq->private_data | 4096-ptr_max |
| PARAM_VALUE | 0 | vq->umem | 1-u64max |
| 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_set_endpoint() -> vhost_vq_init_access()
| 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 |
| PARAM_VALUE | 0 | vq->private_data | 4096-ptr_max |
| BUF_SIZE | 0 | vq | 18984 |
| CAPPED_DATA | 0 | &vq->mutex | 1 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | vq->num | |
| LOCK2 | &vs->dev.mutex | ||
| LOCK2 | 0 | &vq->mutex | |
| TYPE_LOCK | (struct vhost_dev)->mutex | ||
| TYPE_LOCK | (struct vhost_virtqueue)->mutex |