Searched refs:dev_kobj (Results 1 – 4 of 4) sorted by relevance
/linux-6.6.21/drivers/block/rnbd/ |
D | rnbd-srv-sysfs.c | 31 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()
|
D | rnbd-srv.h | 35 struct kobject dev_kobj; member
|
D | rnbd-srv.c | 190 if (dev->dev_kobj.state_in_sysfs) in destroy_device() 750 if (!srv_dev->dev_kobj.state_in_sysfs) { in process_msg_open()
|
/linux-6.6.21/drivers/base/ |
D | core.c | 2262 static struct kobject *dev_kobj; variable 4084 dev_kobj = kobject_create_and_add("dev", NULL); in devices_init() 4085 if (!dev_kobj) in devices_init() 4087 sysfs_dev_block_kobj = kobject_create_and_add("block", dev_kobj); in devices_init() 4090 sysfs_dev_char_kobj = kobject_create_and_add("char", dev_kobj); in devices_init() 4099 kobject_put(dev_kobj); in devices_init()
|