KVM
Classes | Functions
iodev.h File Reference
#include <linux/kvm_types.h>
#include <linux/errno.h>
Include dependency graph for iodev.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kvm_io_device_ops
 
struct  kvm_io_device
 

Functions

static void kvm_iodevice_init (struct kvm_io_device *dev, const struct kvm_io_device_ops *ops)
 
static int kvm_iodevice_read (struct kvm_vcpu *vcpu, struct kvm_io_device *dev, gpa_t addr, int l, void *v)
 
static int kvm_iodevice_write (struct kvm_vcpu *vcpu, struct kvm_io_device *dev, gpa_t addr, int l, const void *v)
 

Function Documentation

◆ kvm_iodevice_init()

static void kvm_iodevice_init ( struct kvm_io_device dev,
const struct kvm_io_device_ops ops 
)
inlinestatic

Definition at line 36 of file iodev.h.

38 {
39  dev->ops = ops;
40 }
const struct kvm_io_device_ops * ops
Definition: iodev.h:33
Here is the caller graph for this function:

◆ kvm_iodevice_read()

static int kvm_iodevice_read ( struct kvm_vcpu *  vcpu,
struct kvm_io_device dev,
gpa_t  addr,
int  l,
void *  v 
)
inlinestatic

Definition at line 42 of file iodev.h.

45 {
46  return dev->ops->read ? dev->ops->read(vcpu, dev, addr, l, v)
47  : -EOPNOTSUPP;
48 }
int(* read)(struct kvm_vcpu *vcpu, struct kvm_io_device *this, gpa_t addr, int len, void *val)
Definition: iodev.h:18
Here is the caller graph for this function:

◆ kvm_iodevice_write()

static int kvm_iodevice_write ( struct kvm_vcpu *  vcpu,
struct kvm_io_device dev,
gpa_t  addr,
int  l,
const void *  v 
)
inlinestatic

Definition at line 50 of file iodev.h.

53 {
54  return dev->ops->write ? dev->ops->write(vcpu, dev, addr, l, v)
55  : -EOPNOTSUPP;
56 }
int(* write)(struct kvm_vcpu *vcpu, struct kvm_io_device *this, gpa_t addr, int len, const void *val)
Definition: iodev.h:23
Here is the caller graph for this function: