Lines Matching refs:kobj
590 static ssize_t enabled_store(struct kobject *kobj, struct kobj_attribute *attr, in enabled_store() argument
604 patch = container_of(kobj, struct klp_patch, kobj); in enabled_store()
633 static ssize_t enabled_show(struct kobject *kobj, in enabled_show() argument
638 patch = container_of(kobj, struct klp_patch, kobj); in enabled_show()
648 static void klp_kobj_release_patch(struct kobject *kobj) in klp_kobj_release_patch() argument
662 static void klp_kobj_release_func(struct kobject *kobj) in klp_kobj_release_func() argument
681 kobject_put(&func->kobj); in klp_free_funcs_limited()
706 kobject_put(obj->kobj); in klp_free_objects_limited()
715 kobject_put(&patch->kobj); in klp_free_patch()
723 return kobject_init_and_add(&func->kobj, &klp_ktype_func, in klp_init_func()
724 obj->kobj, "%s", func->old_name); in klp_init_func()
764 obj->kobj = kobject_create_and_add(name, &patch->kobj); in klp_init_object()
765 if (!obj->kobj) in klp_init_object()
784 kobject_put(obj->kobj); in klp_init_object()
800 ret = kobject_init_and_add(&patch->kobj, &klp_ktype_patch, in klp_init_patch()
819 kobject_put(&patch->kobj); in klp_init_patch()