Lines Matching refs:kobj
142 kobject_init(&eq->kobj, &elv_ktype); in elevator_alloc()
150 static void elevator_release(struct kobject *kobj) in elevator_release() argument
154 e = container_of(kobj, struct elevator_queue, kobj); in elevator_release()
170 kobject_put(&e->kobj); in elevator_exit()
419 elv_attr_show(struct kobject *kobj, struct attribute *attr, char *page) in elv_attr_show() argument
428 e = container_of(kobj, struct elevator_queue, kobj); in elv_attr_show()
436 elv_attr_store(struct kobject *kobj, struct attribute *attr, in elv_attr_store() argument
446 e = container_of(kobj, struct elevator_queue, kobj); in elv_attr_store()
470 error = kobject_add(&e->kobj, &q->disk->queue_kobj, "iosched"); in elv_register_queue()
475 if (sysfs_create_file(&e->kobj, &attr->attr)) in elv_register_queue()
481 kobject_uevent(&e->kobj, KOBJ_ADD); in elv_register_queue()
495 kobject_uevent(&e->kobj, KOBJ_REMOVE); in elv_unregister_queue()
496 kobject_del(&e->kobj); in elv_unregister_queue()