Home
last modified time | relevance | path

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

/Linux-v6.1/samples/vfio-mdev/
Dmtty.c69 static struct mtty_dev { struct
76 } mtty_dev; argument
1299 memset(&mtty_dev, 0, sizeof(mtty_dev)); in mtty_dev_init()
1301 idr_init(&mtty_dev.vd_idr); in mtty_dev_init()
1303 ret = alloc_chrdev_region(&mtty_dev.vd_devt, 0, MINORMASK + 1, in mtty_dev_init()
1311 cdev_init(&mtty_dev.vd_cdev, &vd_fops); in mtty_dev_init()
1312 cdev_add(&mtty_dev.vd_cdev, mtty_dev.vd_devt, MINORMASK + 1); in mtty_dev_init()
1314 pr_info("major_number:%d\n", MAJOR(mtty_dev.vd_devt)); in mtty_dev_init()
1320 mtty_dev.vd_class = class_create(THIS_MODULE, MTTY_CLASS_NAME); in mtty_dev_init()
1322 if (IS_ERR(mtty_dev.vd_class)) { in mtty_dev_init()
[all …]
/Linux-v6.1/Documentation/driver-api/
Dvfio-mediated-device.rst303 |-- mtty_dev