Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- drivers/vhost/net.c
- drivers/vhost/test.c
- drivers/vhost/vdpa.c, line 1269
- drivers/vhost/vhost.c
- drivers/vhost/vsock.c
Smatch caller information:
drivers/vhost/vhost.c vhost_dev_ioctl() -> vhost_dev_check_owner()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | dev | $0 |
| HALF_LOCKED2 | &d->mutex | ||
| HALF_LOCKED2 | &n->dev.mutex | ||
| HALF_LOCKED2 | &vs->dev.mutex | ||
| HALF_LOCKED2 | &vsock->dev.mutex | ||
| TYPE_LOCK | (struct vhost_dev)->mutex |
drivers/vhost/vhost.c vhost_worker_ioctl() -> vhost_dev_check_owner()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->mm | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| LOCK2 | &vs->dev.mutex | ||
| TYPE_LOCK | (struct vhost_dev)->mutex |
drivers/vhost/vdpa.c vhost_vdpa_process_iotlb_msg() -> vhost_dev_check_owner()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| BUF_SIZE | 0 | dev | 512 |
| CAPPED_DATA | 0 | &dev->mutex | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &dev->mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct vhost_dev)->mutex |
drivers/vhost/net.c vhost_net_reset_owner() -> vhost_dev_check_owner()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | &n->dev.mutex | ||
| TYPE_LOCK | (struct vhost_dev)->mutex |
drivers/vhost/net.c vhost_net_set_backend() -> vhost_dev_check_owner()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | &n->dev.mutex | ||
| TYPE_LOCK | (struct vhost_dev)->mutex |
drivers/vhost/vsock.c vhost_vsock_reset_owner() -> vhost_dev_check_owner()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | &vsock->dev.mutex | ||
| TYPE_LOCK | (struct vhost_dev)->mutex |
drivers/vhost/vsock.c vhost_vsock_start() -> vhost_dev_check_owner()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | &vsock->dev.mutex | ||
| TYPE_LOCK | (struct vhost_dev)->mutex |
drivers/vhost/vsock.c vhost_vsock_stop() -> vhost_dev_check_owner()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| LOCK2 | &vsock->dev.mutex | ||
| TYPE_LOCK | (struct vhost_dev)->mutex |