#include <stdint.h>
Go to the source code of this file.
|
static void | vring_init (struct vring *vr, unsigned int num, void *p, unsigned long align) |
|
static unsigned | vring_size (unsigned int num, unsigned long align) |
|
static int | vring_need_event (uint16_t event_idx, uint16_t new_idx, uint16_t old) |
|
◆ VIRTIO_RING_F_EVENT_IDX
#define VIRTIO_RING_F_EVENT_IDX 29 |
◆ VIRTIO_RING_F_INDIRECT_DESC
#define VIRTIO_RING_F_INDIRECT_DESC 28 |
◆ vring_avail_event
#define vring_avail_event |
( |
| vr | ) |
(*(uint16_t *)&(vr)->used->ring[(vr)->num]) |
◆ VRING_AVAIL_F_NO_INTERRUPT
#define VRING_AVAIL_F_NO_INTERRUPT 1 |
◆ VRING_DESC_F_INDIRECT
#define VRING_DESC_F_INDIRECT 4 |
◆ VRING_DESC_F_NEXT
#define VRING_DESC_F_NEXT 1 |
◆ VRING_DESC_F_WRITE
#define VRING_DESC_F_WRITE 2 |
◆ vring_used_event
#define vring_used_event |
( |
| vr | ) |
((vr)->avail->ring[(vr)->num]) |
◆ VRING_USED_F_NO_NOTIFY
#define VRING_USED_F_NO_NOTIFY 1 |
◆ vring_init()
static void vring_init |
( |
struct vring * | vr, |
|
|
unsigned int | num, |
|
|
void * | p, |
|
|
unsigned long | align ) |
|
inlinestatic |
◆ vring_need_event()
static int vring_need_event |
( |
uint16_t | event_idx, |
|
|
uint16_t | new_idx, |
|
|
uint16_t | old ) |
|
inlinestatic |
◆ vring_size()
static unsigned vring_size |
( |
unsigned int | num, |
|
|
unsigned long | align ) |
|
inlinestatic |