Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
vhost.h File Reference
#include <linux/types.h>
#include <linux/compiler.h>
#include <linux/ioctl.h>
#include <linux/virtio_config.h>
#include <linux/virtio_ring.h>

Go to the source code of this file.

Data Structures

struct  vhost_vring_state
 
struct  vhost_vring_file
 
struct  vhost_vring_addr
 
struct  vhost_memory_region
 
struct  vhost_memory
 

Macros

#define VHOST_VRING_F_LOG   0
 
#define VHOST_PAGE_SIZE   0x1000
 
#define VHOST_VIRTIO   0xAF
 
#define VHOST_GET_FEATURES   _IOR(VHOST_VIRTIO, 0x00, __u64)
 
#define VHOST_SET_FEATURES   _IOW(VHOST_VIRTIO, 0x00, __u64)
 
#define VHOST_SET_OWNER   _IO(VHOST_VIRTIO, 0x01)
 
#define VHOST_RESET_OWNER   _IO(VHOST_VIRTIO, 0x02)
 
#define VHOST_SET_MEM_TABLE   _IOW(VHOST_VIRTIO, 0x03, struct vhost_memory)
 
#define VHOST_SET_LOG_BASE   _IOW(VHOST_VIRTIO, 0x04, __u64)
 
#define VHOST_SET_LOG_FD   _IOW(VHOST_VIRTIO, 0x07, int)
 
#define VHOST_SET_VRING_NUM   _IOW(VHOST_VIRTIO, 0x10, struct vhost_vring_state)
 
#define VHOST_SET_VRING_ADDR   _IOW(VHOST_VIRTIO, 0x11, struct vhost_vring_addr)
 
#define VHOST_SET_VRING_BASE   _IOW(VHOST_VIRTIO, 0x12, struct vhost_vring_state)
 
#define VHOST_GET_VRING_BASE   _IOWR(VHOST_VIRTIO, 0x12, struct vhost_vring_state)
 
#define VHOST_SET_VRING_KICK   _IOW(VHOST_VIRTIO, 0x20, struct vhost_vring_file)
 
#define VHOST_SET_VRING_CALL   _IOW(VHOST_VIRTIO, 0x21, struct vhost_vring_file)
 
#define VHOST_SET_VRING_ERR   _IOW(VHOST_VIRTIO, 0x22, struct vhost_vring_file)
 
#define VHOST_NET_SET_BACKEND   _IOW(VHOST_VIRTIO, 0x30, struct vhost_vring_file)
 
#define VHOST_F_LOG_ALL   26
 
#define VHOST_NET_F_VIRTIO_NET_HDR   27
 

Macro Definition Documentation

#define VHOST_F_LOG_ALL   26

Definition at line 126 of file vhost.h.

#define VHOST_GET_FEATURES   _IOR(VHOST_VIRTIO, 0x00, __u64)

Definition at line 72 of file vhost.h.

#define VHOST_GET_VRING_BASE   _IOWR(VHOST_VIRTIO, 0x12, struct vhost_vring_state)

Definition at line 104 of file vhost.h.

#define VHOST_NET_F_VIRTIO_NET_HDR   27

Definition at line 128 of file vhost.h.

#define VHOST_NET_SET_BACKEND   _IOW(VHOST_VIRTIO, 0x30, struct vhost_vring_file)

Definition at line 122 of file vhost.h.

#define VHOST_PAGE_SIZE   0x1000

Definition at line 58 of file vhost.h.

#define VHOST_RESET_OWNER   _IO(VHOST_VIRTIO, 0x02)

Definition at line 81 of file vhost.h.

#define VHOST_SET_FEATURES   _IOW(VHOST_VIRTIO, 0x00, __u64)

Definition at line 73 of file vhost.h.

#define VHOST_SET_LOG_BASE   _IOW(VHOST_VIRTIO, 0x04, __u64)

Definition at line 91 of file vhost.h.

#define VHOST_SET_LOG_FD   _IOW(VHOST_VIRTIO, 0x07, int)

Definition at line 93 of file vhost.h.

#define VHOST_SET_MEM_TABLE   _IOW(VHOST_VIRTIO, 0x03, struct vhost_memory)

Definition at line 84 of file vhost.h.

#define VHOST_SET_OWNER   _IO(VHOST_VIRTIO, 0x01)

Definition at line 78 of file vhost.h.

#define VHOST_SET_VRING_ADDR   _IOW(VHOST_VIRTIO, 0x11, struct vhost_vring_addr)

Definition at line 100 of file vhost.h.

#define VHOST_SET_VRING_BASE   _IOW(VHOST_VIRTIO, 0x12, struct vhost_vring_state)

Definition at line 102 of file vhost.h.

#define VHOST_SET_VRING_CALL   _IOW(VHOST_VIRTIO, 0x21, struct vhost_vring_file)

Definition at line 112 of file vhost.h.

#define VHOST_SET_VRING_ERR   _IOW(VHOST_VIRTIO, 0x22, struct vhost_vring_file)

Definition at line 114 of file vhost.h.

#define VHOST_SET_VRING_KICK   _IOW(VHOST_VIRTIO, 0x20, struct vhost_vring_file)

Definition at line 110 of file vhost.h.

#define VHOST_SET_VRING_NUM   _IOW(VHOST_VIRTIO, 0x10, struct vhost_vring_state)

Definition at line 98 of file vhost.h.

#define VHOST_VIRTIO   0xAF

Definition at line 68 of file vhost.h.

#define VHOST_VRING_F_LOG   0

Definition at line 36 of file vhost.h.