#include <linux/eventfd.h>
#include <linux/vhost.h>
#include <linux/virtio_net.h>
#include <linux/mm.h>
#include <linux/mmu_context.h>
#include <linux/miscdevice.h>
#include <linux/mutex.h>
#include <linux/rcupdate.h>
#include <linux/poll.h>
#include <linux/file.h>
#include <linux/highmem.h>
#include <linux/slab.h>
#include <linux/kthread.h>
#include <linux/cgroup.h>
#include <linux/net.h>
#include <linux/if_packet.h>
#include <linux/if_arp.h>
#include "vhost.h"
Go to the source code of this file.
|
void | vhost_work_init (struct vhost_work *work, vhost_work_fn_t fn) |
|
void | vhost_poll_init (struct vhost_poll *poll, vhost_work_fn_t fn, unsigned long mask, struct vhost_dev *dev) |
|
void | vhost_poll_start (struct vhost_poll *poll, struct file *file) |
|
void | vhost_poll_stop (struct vhost_poll *poll) |
|
void | vhost_poll_flush (struct vhost_poll *poll) |
|
void | vhost_work_queue (struct vhost_dev *dev, struct vhost_work *work) |
|
void | vhost_poll_queue (struct vhost_poll *poll) |
|
void | vhost_enable_zcopy (int vq) |
|
long | vhost_dev_init (struct vhost_dev *dev, struct vhost_virtqueue *vqs, int nvqs) |
|
long | vhost_dev_check_owner (struct vhost_dev *dev) |
|
long | vhost_dev_reset_owner (struct vhost_dev *dev) |
|
int | vhost_zerocopy_signal_used (struct vhost_virtqueue *vq) |
|
void | vhost_dev_cleanup (struct vhost_dev *dev, bool locked) |
|
int | vhost_log_access_ok (struct vhost_dev *dev) |
|
int | vhost_vq_access_ok (struct vhost_virtqueue *vq) |
|
long | vhost_dev_ioctl (struct vhost_dev *d, unsigned int ioctl, unsigned long arg) |
|
int | vhost_log_write (struct vhost_virtqueue *vq, struct vhost_log *log, unsigned int log_num, u64 len) |
|
int | vhost_init_used (struct vhost_virtqueue *vq) |
|
int | vhost_get_vq_desc (struct vhost_dev *dev, struct vhost_virtqueue *vq, struct iovec iov[], unsigned int iov_size, unsigned int *out_num, unsigned int *in_num, struct vhost_log *log, unsigned int *log_num) |
|
void | vhost_discard_vq_desc (struct vhost_virtqueue *vq, int n) |
|
int | vhost_add_used (struct vhost_virtqueue *vq, unsigned int head, int len) |
|
int | vhost_add_used_n (struct vhost_virtqueue *vq, struct vring_used_elem *heads, unsigned count) |
|
void | vhost_signal (struct vhost_dev *dev, struct vhost_virtqueue *vq) |
|
void | vhost_add_used_and_signal (struct vhost_dev *dev, struct vhost_virtqueue *vq, unsigned int head, int len) |
|
void | vhost_add_used_and_signal_n (struct vhost_dev *dev, struct vhost_virtqueue *vq, struct vring_used_elem *heads, unsigned count) |
|
bool | vhost_enable_notify (struct vhost_dev *dev, struct vhost_virtqueue *vq) |
|
void | vhost_disable_notify (struct vhost_dev *dev, struct vhost_virtqueue *vq) |
|
struct vhost_ubuf_ref * | vhost_ubuf_alloc (struct vhost_virtqueue *vq, bool zcopy) |
|
void | vhost_ubuf_put (struct vhost_ubuf_ref *ubufs) |
|
void | vhost_ubuf_put_and_wait (struct vhost_ubuf_ref *ubufs) |
|
void | vhost_zerocopy_callback (struct ubuf_info *ubuf) |
|
- Enumerator:
VHOST_MEMORY_MAX_NREGIONS |
|
VHOST_MEMORY_F_LOG |
|
Definition at line 35 of file vhost.c.