Searched refs:bdev_kobj (Results 1 – 8 of 8) sorted by relevance
/linux/block/ |
H A D | holder.c | 105 ret = add_symlink(disk->slave_dir, bdev_kobj(bdev)); in bd_link_disk_holder() 117 del_symlink(disk->slave_dir, bdev_kobj(bdev)); in bd_link_disk_holder() 148 del_symlink(disk->slave_dir, bdev_kobj(bdev)); in bd_unlink_disk_holder()
|
H A D | genhd.c | 335 kobject_uevent(bdev_kobj(part), action); in disk_uevent()
|
/linux/drivers/block/rnbd/ |
H A D | rnbd-srv-sysfs.c | 44 struct kobject *bdev_kobj; in rnbd_srv_create_dev_sysfs() local 61 bdev_kobj = &disk_to_dev(bdev->bd_disk)->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()
|
/linux/include/linux/ |
H A D | blk_types.h | 90 #define bdev_kobj(_bdev) \ macro
|
/linux/fs/bcachefs/ |
H A D | super.c | 1263 (b = bdev_kobj(ca->disk_sb.bdev))->state_in_sysfs) { in bch2_dev_unlink() 1284 struct kobject *block = bdev_kobj(ca->disk_sb.bdev); in bch2_dev_sysfs_online()
|
/linux/fs/btrfs/ |
H A D | sysfs.c | 1844 sysfs_remove_link(devices_kobj, bdev_kobj(device->bdev)->name); in btrfs_sysfs_remove_device() 2026 struct kobject *disk_kobj = bdev_kobj(device->bdev); in btrfs_sysfs_add_device()
|
/linux/drivers/md/bcache/ |
H A D | super.c | 1458 if (kobject_add(&dc->disk.kobj, bdev_kobj(dc->bdev), "bcache")) in register_bdev() 2369 if (kobject_add(&ca->kobj, bdev_kobj(file_bdev(bdev_file)), "bcache")) { in register_cache()
|
/linux/drivers/md/ |
H A D | md.c | 2450 err = sysfs_create_link(&rdev->kobj, bdev_kobj(rdev->bdev), "block"); in bind_rdev_to_array()
|