Home
last modified time | relevance | path

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

/Linux-v6.6/samples/vfio-mdev/
Dmtty.c69 static struct mtty_dev { struct
76 } mtty_dev; argument
1302 memset(&mtty_dev, 0, sizeof(mtty_dev)); in mtty_dev_init()
1304 idr_init(&mtty_dev.vd_idr); in mtty_dev_init()
1306 ret = alloc_chrdev_region(&mtty_dev.vd_devt, 0, MINORMASK + 1, in mtty_dev_init()
1314 cdev_init(&mtty_dev.vd_cdev, &vd_fops); in mtty_dev_init()
1315 cdev_add(&mtty_dev.vd_cdev, mtty_dev.vd_devt, MINORMASK + 1); in mtty_dev_init()
1317 pr_info("major_number:%d\n", MAJOR(mtty_dev.vd_devt)); in mtty_dev_init()
1323 mtty_dev.vd_class = class_create(MTTY_CLASS_NAME); in mtty_dev_init()
1325 if (IS_ERR(mtty_dev.vd_class)) { in mtty_dev_init()
[all …]
DREADME.rst31 |-- mtty_dev