Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
virtio_chan Struct Reference

Data Fields

bool inuse
 
spinlock_t lock
 
struct p9_clientclient
 
struct virtio_devicevdev
 
struct virtqueuevq
 
int ring_bufs_avail
 
wait_queue_head_tvc_wq
 
int p9_max_pages
 
struct scatterlist sg [VIRTQUEUE_NUM]
 
int tag_len
 
chartag
 
struct list_head chan_list
 

Detailed Description

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.

Field Documentation

struct list_head chan_list

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.

Definition at line 85 of file trans_virtio.c.

Definition at line 82 of file trans_virtio.c.

Definition at line 83 of file trans_virtio.c.


The documentation for this struct was generated from the following file: