Home
last modified time | relevance | path

Searched refs:bdev_kobj (Results 1 – 8 of 8) sorted by relevance

/linux/block/
H A Dholder.c105 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 Dgenhd.c335 kobject_uevent(bdev_kobj(part), action); in disk_uevent()
/linux/drivers/block/rnbd/
H A Drnbd-srv-sysfs.c44 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 Dblk_types.h90 #define bdev_kobj(_bdev) \ macro
/linux/fs/bcachefs/
H A Dsuper.c1263 (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 Dsysfs.c1844 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 Dsuper.c1458 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 Dmd.c2450 err = sysfs_create_link(&rdev->kobj, bdev_kobj(rdev->bdev), "block"); in bind_rdev_to_array()