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

Data Fields

struct virtio_devicevdev
 
struct virtqueuervq
 
struct virtqueuesvq
 
voidrbufs
 
voidsbufs
 
int last_sbuf
 
dma_addr_t bufs_dma
 
struct mutex tx_lock
 
struct idr endpoints
 
struct mutex endpoints_lock
 
wait_queue_head_t sendq
 
atomic_t sleepers
 
struct rpmsg_endpointns_ept
 

Detailed Description

struct virtproc_info - virtual remote processor state : the virtio device : rx virtqueue : tx virtqueue : kernel address of rx buffers : kernel address of tx buffers : index of last tx buffer used : dma base addr of the buffers : protects svq, sbufs and sleepers, to allow concurrent senders. sending a message might require waking up a dozing remote processor, which involves sleeping, hence the mutex. : idr of local endpoints, allows fast retrieval : lock of the endpoints set : wait queue of sending contexts waiting for a tx buffers : number of senders that are waiting for a tx buffer : the bus's name service endpoint

This structure stores the rpmsg state of a given virtio remote processor device (there might be several virtio proc devices for each physical remote processor).

Definition at line 59 of file virtio_rpmsg_bus.c.

Field Documentation

dma_addr_t bufs_dma

Definition at line 64 of file virtio_rpmsg_bus.c.

Definition at line 66 of file virtio_rpmsg_bus.c.

struct mutex endpoints_lock

Definition at line 67 of file virtio_rpmsg_bus.c.

int last_sbuf

Definition at line 63 of file virtio_rpmsg_bus.c.

Definition at line 70 of file virtio_rpmsg_bus.c.

void* rbufs

Definition at line 62 of file virtio_rpmsg_bus.c.

Definition at line 61 of file virtio_rpmsg_bus.c.

void * sbufs

Definition at line 62 of file virtio_rpmsg_bus.c.

Definition at line 68 of file virtio_rpmsg_bus.c.

atomic_t sleepers

Definition at line 69 of file virtio_rpmsg_bus.c.

Definition at line 61 of file virtio_rpmsg_bus.c.

struct mutex tx_lock

Definition at line 65 of file virtio_rpmsg_bus.c.

Definition at line 60 of file virtio_rpmsg_bus.c.


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