Home
last modified time | relevance | path

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

/drivers/block/rnbd/
Drnbd-srv-sysfs.c21 static struct device *rnbd_dev; variable
222 rnbd_dev = device_create(&rnbd_dev_class, NULL, in rnbd_srv_create_sysfs_files()
224 if (IS_ERR(rnbd_dev)) { in rnbd_srv_create_sysfs_files()
225 err = PTR_ERR(rnbd_dev); in rnbd_srv_create_sysfs_files()
228 rnbd_devs_kobj = kobject_create_and_add("devices", &rnbd_dev->kobj); in rnbd_srv_create_sysfs_files()
Drnbd-clt-sysfs.c26 static struct device *rnbd_dev; variable
457 ATTRIBUTE_GROUPS(rnbd_dev);
655 rnbd_dev = device_create_with_groups(&rnbd_dev_class, NULL, in rnbd_clt_create_sysfs_files()
658 if (IS_ERR(rnbd_dev)) { in rnbd_clt_create_sysfs_files()
659 err = PTR_ERR(rnbd_dev); in rnbd_clt_create_sysfs_files()
662 rnbd_devs_kobj = kobject_create_and_add("devices", &rnbd_dev->kobj); in rnbd_clt_create_sysfs_files()
680 sysfs_remove_group(&rnbd_dev->kobj, &default_attr_group); in rnbd_clt_destroy_sysfs_files()