Home
last modified time | relevance | path

Searched refs:mtty_dev (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/samples/vfio-mdev/
Dmtty.c71 static struct mtty_dev { struct
77 } mtty_dev; variable
1318 memset(&mtty_dev, 0, sizeof(mtty_dev)); in mtty_dev_init()
1320 idr_init(&mtty_dev.vd_idr); in mtty_dev_init()
1322 ret = alloc_chrdev_region(&mtty_dev.vd_devt, 0, MINORMASK + 1, in mtty_dev_init()
1330 cdev_init(&mtty_dev.vd_cdev, &vd_fops); in mtty_dev_init()
1331 cdev_add(&mtty_dev.vd_cdev, mtty_dev.vd_devt, MINORMASK + 1); in mtty_dev_init()
1333 pr_info("major_number:%d\n", MAJOR(mtty_dev.vd_devt)); in mtty_dev_init()
1339 mtty_dev.vd_class = class_create(THIS_MODULE, MTTY_CLASS_NAME); in mtty_dev_init()
1341 if (IS_ERR(mtty_dev.vd_class)) { in mtty_dev_init()
[all …]
/linux-5.19.10/Documentation/driver-api/
Dvfio-mediated-device.rst307 |-- mtty_dev