mdev_type
struct mdev_type type;
struct mdev_type **mdev_types;
static ssize_t intel_vgpu_show_description(struct mdev_type *mtype, char *buf)
static unsigned int intel_vgpu_get_available(struct mdev_type *mtype)
parent->mdev_type.sysfs_name = "io";
parent->mdev_type.pretty_name = "I/O subchannel (Non-QDIO)";
parent->mdev_types = &parent->mdev_type;
struct mdev_type mdev_type;
struct mdev_type *mdev_types;
matrix_dev->mdev_type.sysfs_name = VFIO_AP_MDEV_TYPE_HWVIRT;
matrix_dev->mdev_type.pretty_name = VFIO_AP_MDEV_NAME_HWVIRT;
matrix_dev->mdev_types = &matrix_dev->mdev_type;
struct mdev_type mdev_type;
struct mdev_type *mdev_types;
int mdev_device_create(struct mdev_type *type, const guid_t *uuid)
struct mdev_driver *mdev_driver, struct mdev_type **types,
container_of(_kobj, struct mdev_type, kobj)
int mdev_device_create(struct mdev_type *kobj, const guid_t *uuid);
static ssize_t available_instances_show(struct mdev_type *mtype,
static ssize_t description_show(struct mdev_type *mtype,
struct mdev_type *type = to_mdev_type(kobj);
static int mdev_type_add(struct mdev_parent *parent, struct mdev_type *type)
ssize_t (*show)(struct mdev_type *mtype,
static void mdev_type_remove(struct mdev_type *type)
ssize_t (*store)(struct mdev_type *mtype,
struct mdev_type *type = mdev->type;
struct mdev_type *type = to_mdev_type(kobj);
struct mdev_type *type = to_mdev_type(kobj);
static ssize_t create_store(struct mdev_type *mtype,
static ssize_t device_api_show(struct mdev_type *mtype,
static ssize_t name_show(struct mdev_type *mtype,
struct mdev_type;
struct mdev_type *type;
struct mdev_type **types;
unsigned int (*get_available)(struct mdev_type *mtype);
ssize_t (*show_description)(struct mdev_type *mtype, char *buf);
struct mdev_driver *mdev_driver, struct mdev_type **types,
struct mdev_type type;
static struct mdev_type *mbochs_mdev_types[] = {
static ssize_t mbochs_show_description(struct mdev_type *mtype, char *buf)
static unsigned int mbochs_get_available(struct mdev_type *mtype)
struct mdev_type type;
static ssize_t mdpy_show_description(struct mdev_type *mtype, char *buf)
static struct mdev_type *mdpy_mdev_types[] = {
struct mdev_type type;
static struct mdev_type *mtty_mdev_types[] = {
static unsigned int mtty_get_available(struct mdev_type *mtype)