Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
virtio_test.c File Reference
#include <getopt.h>
#include <string.h>
#include <poll.h>
#include <sys/eventfd.h>
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <linux/vhost.h>
#include <linux/virtio.h>
#include <linux/virtio_ring.h>
#include "../../drivers/vhost/test.h"

Go to the source code of this file.

Data Structures

struct  vq_info
 
struct  vdev_info
 

Macros

#define _GNU_SOURCE
 

Functions

void vq_notify (struct virtqueue *vq)
 
void vq_callback (struct virtqueue *vq)
 
void vhost_vq_setup (struct vdev_info *dev, struct vq_info *info)
 
int main (int argc, char **argv)
 

Variables

const char optstring [] = "h"
 
struct option longopts []
 

Macro Definition Documentation

#define _GNU_SOURCE

Definition at line 1 of file virtio_test.c.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 244 of file virtio_test.c.

void vhost_vq_setup ( struct vdev_info dev,
struct vq_info info 
)

Definition at line 54 of file virtio_test.c.

void vq_callback ( struct virtqueue vq)

Definition at line 49 of file virtio_test.c.

void vq_notify ( struct virtqueue vq)

Definition at line 40 of file virtio_test.c.

Variable Documentation

struct option longopts[]

Definition at line 202 of file virtio_test.c.

const char optstring[] = "h"

Definition at line 201 of file virtio_test.c.