Home
last modified time | relevance | path

Searched refs:dev_kobj (Results 1 – 7 of 7) sorted by relevance

/linux-5.19.10/drivers/block/rnbd/
Drnbd-srv-sysfs.c30 dev = container_of(kobj, struct rnbd_srv_dev, dev_kobj); in rnbd_srv_dev_release()
47 ret = kobject_init_and_add(&dev->dev_kobj, &dev_ktype, in rnbd_srv_create_dev_sysfs()
50 kobject_put(&dev->dev_kobj); in rnbd_srv_create_dev_sysfs()
55 &dev->dev_kobj); in rnbd_srv_create_dev_sysfs()
62 ret = sysfs_create_link(&dev->dev_kobj, bdev_kobj, "block_dev"); in rnbd_srv_create_dev_sysfs()
71 kobject_del(&dev->dev_kobj); in rnbd_srv_create_dev_sysfs()
72 kobject_put(&dev->dev_kobj); in rnbd_srv_create_dev_sysfs()
78 sysfs_remove_link(&dev->dev_kobj, "block_dev"); in rnbd_srv_destroy_dev_sysfs()
81 kobject_del(&dev->dev_kobj); in rnbd_srv_destroy_dev_sysfs()
82 kobject_put(&dev->dev_kobj); in rnbd_srv_destroy_dev_sysfs()
Drnbd-srv.h37 struct kobject dev_kobj; member
Drnbd-srv.c194 if (dev->dev_kobj.state_in_sysfs) in destroy_device()
761 if (!srv_dev->dev_kobj.state_in_sysfs) { in process_msg_open()
/linux-5.19.10/drivers/base/
Dclass.c174 if (!cls->dev_kobj) in __class_register()
175 cls->dev_kobj = sysfs_dev_char_kobj; in __class_register()
Dcore.c2016 static struct kobject *dev_kobj; variable
3238 kobj = dev->class->dev_kobj; in device_to_dev_kobj()
3851 dev_kobj = kobject_create_and_add("dev", NULL); in devices_init()
3852 if (!dev_kobj) in devices_init()
3854 sysfs_dev_block_kobj = kobject_create_and_add("block", dev_kobj); in devices_init()
3857 sysfs_dev_char_kobj = kobject_create_and_add("char", dev_kobj); in devices_init()
3866 kobject_put(dev_kobj); in devices_init()
/linux-5.19.10/include/linux/device/
Dclass.h60 struct kobject *dev_kobj; member
/linux-5.19.10/block/
Dgenhd.c882 block_class.dev_kobj = sysfs_dev_block_kobj; in genhd_device_init()