Searched refs:dev_kobj (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.10/drivers/block/rnbd/ |
D | rnbd-srv-sysfs.c | 31 dev = container_of(kobj, struct rnbd_srv_dev, dev_kobj); in rnbd_srv_dev_release() 48 ret = kobject_init_and_add(&dev->dev_kobj, &dev_ktype, in rnbd_srv_create_dev_sysfs() 54 &dev->dev_kobj); in rnbd_srv_create_dev_sysfs() 59 ret = sysfs_create_link(&dev->dev_kobj, bdev_kobj, "block_dev"); in rnbd_srv_create_dev_sysfs() 68 kobject_put(&dev->dev_kobj); in rnbd_srv_create_dev_sysfs() 74 sysfs_remove_link(&dev->dev_kobj, "block_dev"); in rnbd_srv_destroy_dev_sysfs() 77 kobject_del(&dev->dev_kobj); in rnbd_srv_destroy_dev_sysfs() 78 kobject_put(&dev->dev_kobj); in rnbd_srv_destroy_dev_sysfs()
|
D | rnbd-srv.h | 38 struct kobject dev_kobj; member
|
D | rnbd-srv.c | 192 if (dev->dev_kobj.state_in_sysfs) in destroy_device() 762 if (!srv_dev->dev_kobj.state_in_sysfs) { in process_msg_open()
|
/Linux-v5.10/drivers/base/ |
D | class.c | 174 if (!cls->dev_kobj) in __class_register() 175 cls->dev_kobj = sysfs_dev_char_kobj; in __class_register()
|
D | core.c | 1579 static struct kobject *dev_kobj; variable 2744 kobj = dev->class->dev_kobj; in device_to_dev_kobj() 3352 dev_kobj = kobject_create_and_add("dev", NULL); in devices_init() 3353 if (!dev_kobj) in devices_init() 3355 sysfs_dev_block_kobj = kobject_create_and_add("block", dev_kobj); in devices_init() 3358 sysfs_dev_char_kobj = kobject_create_and_add("char", dev_kobj); in devices_init() 3367 kobject_put(dev_kobj); in devices_init()
|
/Linux-v5.10/include/linux/device/ |
D | class.h | 60 struct kobject *dev_kobj; member
|
/Linux-v5.10/block/ |
D | genhd.c | 1219 block_class.dev_kobj = sysfs_dev_block_kobj; in genhd_device_init()
|