|
Linux Kernel
3.7.1
|
Data Fields | |
| bool | inuse |
| spinlock_t | lock |
| struct p9_client * | client |
| struct virtio_device * | vdev |
| struct virtqueue * | vq |
| int | ring_bufs_avail |
| wait_queue_head_t * | vc_wq |
| int | p9_max_pages |
| struct scatterlist | sg [VIRTQUEUE_NUM] |
| int | tag_len |
| char * | tag |
| struct list_head | chan_list |
struct virtio_chan - per-instance transport information : whether the channel is initialized : whether the channel is in use : protects multiple elements within this structure : client instance : virtio dev associated with this channel : virtio queue associated with this channel : scatter gather list which is used to pack a request (protected?)
We keep all per-channel information in a structure. This structure is allocated within the devices dev->mem space. A pointer to the structure will get put in the transport private.
Definition at line 76 of file trans_virtio.c.
Definition at line 99 of file trans_virtio.c.
Definition at line 81 of file trans_virtio.c.
| bool inuse |
Definition at line 77 of file trans_virtio.c.
| spinlock_t lock |
Definition at line 79 of file trans_virtio.c.
| int p9_max_pages |
Definition at line 89 of file trans_virtio.c.
| int ring_bufs_avail |
Definition at line 84 of file trans_virtio.c.
Definition at line 91 of file trans_virtio.c.
Definition at line 97 of file trans_virtio.c.
| int tag_len |
Definition at line 93 of file trans_virtio.c.
| wait_queue_head_t* vc_wq |
Definition at line 85 of file trans_virtio.c.
| struct virtio_device* vdev |
Definition at line 82 of file trans_virtio.c.
Definition at line 83 of file trans_virtio.c.
1.8.2