Home
last modified time | relevance | path

Searched refs:kobj (Results 1 – 20 of 20) sorted by relevance

/block/
Dblk-mq-sysfs.c18 static void blk_mq_sysfs_release(struct kobject *kobj) in blk_mq_sysfs_release() argument
20 struct blk_mq_ctxs *ctxs = container_of(kobj, struct blk_mq_ctxs, kobj); in blk_mq_sysfs_release()
26 static void blk_mq_ctx_sysfs_release(struct kobject *kobj) in blk_mq_ctx_sysfs_release() argument
28 struct blk_mq_ctx *ctx = container_of(kobj, struct blk_mq_ctx, kobj); in blk_mq_ctx_sysfs_release()
31 kobject_put(&ctx->ctxs->kobj); in blk_mq_ctx_sysfs_release()
34 static void blk_mq_hw_sysfs_release(struct kobject *kobj) in blk_mq_hw_sysfs_release() argument
36 struct blk_mq_hw_ctx *hctx = container_of(kobj, struct blk_mq_hw_ctx, in blk_mq_hw_sysfs_release()
37 kobj); in blk_mq_hw_sysfs_release()
54 static ssize_t blk_mq_hw_sysfs_show(struct kobject *kobj, in blk_mq_hw_sysfs_show() argument
63 hctx = container_of(kobj, struct blk_mq_hw_ctx, kobj); in blk_mq_hw_sysfs_show()
[all …]
Dblk-crypto-sysfs.c14 struct kobject kobj; member
24 static struct blk_crypto_profile *kobj_to_crypto_profile(struct kobject *kobj) in kobj_to_crypto_profile() argument
26 return container_of(kobj, struct blk_crypto_kobj, kobj)->profile; in kobj_to_crypto_profile()
69 static umode_t blk_crypto_mode_is_visible(struct kobject *kobj, in blk_crypto_mode_is_visible() argument
72 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj); in blk_crypto_mode_is_visible()
101 static ssize_t blk_crypto_attr_show(struct kobject *kobj, in blk_crypto_attr_show() argument
104 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj); in blk_crypto_attr_show()
114 static void blk_crypto_release(struct kobject *kobj) in blk_crypto_release() argument
116 kfree(container_of(kobj, struct blk_crypto_kobj, kobj)); in blk_crypto_release()
142 err = kobject_init_and_add(&obj->kobj, &blk_crypto_ktype, &q->kobj, in blk_crypto_sysfs_register()
[all …]
Dblk-sysfs.c687 static umode_t queue_attr_visible(struct kobject *kobj, struct attribute *attr, in queue_attr_visible() argument
691 container_of(kobj, struct request_queue, kobj); in queue_attr_visible()
714 queue_attr_show(struct kobject *kobj, struct attribute *attr, char *page) in queue_attr_show() argument
718 container_of(kobj, struct request_queue, kobj); in queue_attr_show()
730 queue_attr_store(struct kobject *kobj, struct attribute *attr, in queue_attr_store() argument
740 q = container_of(kobj, struct request_queue, kobj); in queue_attr_store()
797 static void blk_release_queue(struct kobject *kobj) in blk_release_queue() argument
800 container_of(kobj, struct request_queue, kobj); in blk_release_queue()
859 ret = kobject_add(&q->kobj, kobject_get(&dev->kobj), "%s", "queue"); in blk_register_queue()
865 ret = sysfs_create_group(&q->kobj, &queue_attr_group); in blk_register_queue()
[all …]
Delevator.c174 kobject_init(&eq->kobj, &elv_ktype); in elevator_alloc()
182 static void elevator_release(struct kobject *kobj) in elevator_release() argument
186 e = container_of(kobj, struct elevator_queue, kobj); in elevator_release()
197 kobject_put(&e->kobj); in __elevator_exit()
446 elv_attr_show(struct kobject *kobj, struct attribute *attr, char *page) in elv_attr_show() argument
455 e = container_of(kobj, struct elevator_queue, kobj); in elv_attr_show()
463 elv_attr_store(struct kobject *kobj, struct attribute *attr, in elv_attr_store() argument
473 e = container_of(kobj, struct elevator_queue, kobj); in elv_attr_store()
497 error = kobject_add(&e->kobj, &q->kobj, "%s", "iosched"); in elv_register_queue()
502 if (sysfs_create_file(&e->kobj, &attr->attr)) in elv_register_queue()
[all …]
Dbsg.c178 if (bd->queue->kobj.sd) in bsg_unregister_queue()
179 sysfs_remove_link(&bd->queue->kobj, "bsg"); in bsg_unregister_queue()
219 if (q->kobj.sd) { in bsg_register_queue()
220 ret = sysfs_create_link(&q->kobj, &bd->device.kobj, "bsg"); in bsg_register_queue()
Dgenhd.c95 kobject_uevent_env(&disk_to_dev(disk)->kobj, KOBJ_CHANGE, envp); in set_capacity_and_notify()
359 if (!kobject_get_unless_zero(&part->bd_device.kobj)) in disk_uevent()
457 ret = sysfs_create_link(block_depr, &ddev->kobj, in device_add_disk()
458 kobject_name(&ddev->kobj)); in device_add_disk()
475 kobject_create_and_add("holders", &ddev->kobj); in device_add_disk()
480 disk->slave_dir = kobject_create_and_add("slaves", &ddev->kobj); in device_add_disk()
507 ret = sysfs_create_link(&ddev->kobj, in device_add_disk()
508 &disk->bdi->dev->kobj, "bdi"); in device_add_disk()
618 sysfs_remove_link(&disk_to_dev(disk)->kobj, "bdi"); in del_gendisk()
1070 static umode_t disk_visible(struct kobject *kobj, struct attribute *a, int n) in disk_visible() argument
[all …]
Dblk-integrity.c221 static ssize_t integrity_attr_show(struct kobject *kobj, struct attribute *attr, in integrity_attr_show() argument
224 struct gendisk *disk = container_of(kobj, struct gendisk, integrity_kobj); in integrity_attr_show()
232 static ssize_t integrity_attr_store(struct kobject *kobj, in integrity_attr_store() argument
236 struct gendisk *disk = container_of(kobj, struct gendisk, integrity_kobj); in integrity_attr_store()
446 &disk_to_dev(disk)->kobj, "%s", "integrity"); in blk_integrity_add()
Dholder.c39 ret = add_symlink(bdev->bd_holder_dir, &disk_to_dev(disk)->kobj); in __link_disk_holder()
126 del_symlink(bdev->bd_holder_dir, &disk_to_dev(disk)->kobj); in __unlink_disk_holder()
Dblk-mq.h11 struct kobject kobj; member
37 struct kobject kobj; member
Ddisk-events.c181 kobject_uevent_env(&disk_to_dev(disk)->kobj, KOBJ_CHANGE, envp); in disk_event_uevent()
Dblk.h56 kobject_get(&q->kobj); in __blk_get_queue()
Dblk-mq-sched.c638 kobject_put(&eq->kobj); in blk_mq_init_sched()
Dblk-core.c342 kobject_put(&q->kobj); in blk_put_queue()
569 kobject_init(&q->kobj, &blk_queue_ktype); in blk_alloc_queue()
Dbdev.c748 if (!kobject_get_unless_zero(&bdev->bd_device.kobj)) in blkdev_get_no_open()
Dkyber-iosched.c418 kobject_put(&eq->kobj); in kyber_init_sched()
Dblk-mq.c3085 q->mq_kobj = &ctxs->kobj; in blk_mq_alloc_ctxs()
3111 kobject_put(&hctx->kobj); in blk_mq_release()
3195 kobject_put(&hctx->kobj); in blk_mq_alloc_and_init_hctx()
Dmq-deadline.c745 kobject_put(&eq->kobj); in dd_init_sched()
Dbfq-iosched.c6951 kobject_put(&eq->kobj); in bfq_init_queue()
7068 kobject_put(&eq->kobj); in bfq_init_queue()
Dblk-iocost.c675 return kobject_name(q->kobj.parent); in q_name()
/block/partitions/
Dcore.c400 bdev->bd_holder_dir = kobject_create_and_add("holders", &pdev->kobj); in add_partition()
419 kobject_uevent(&pdev->kobj, KOBJ_ADD); in add_partition()
655 kobject_uevent(&disk_to_dev(disk)->kobj, KOBJ_CHANGE); in blk_add_partitions()
708 kobject_uevent(&disk_to_dev(disk)->kobj, KOBJ_CHANGE); in bdev_disk_changed()