Home
last modified time | relevance | path

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

12345678910>>...38

/linux-6.3-rc2/lib/
A Dkobject.c35 return kobj->ktype->namespace(kobj); in kobject_namespace()
209 if (!kobj->name || !kobj->name[0]) { in kobject_add_internal()
229 kobj->kset ? kobject_name(&kobj->kset->kobj) : "<NULL>"); in kobject_add_internal()
474 kobj = kobject_get(kobj); in kobject_rename()
538 kobj = kobject_get(kobj); in kobject_move()
592 kobject_name(kobj), kobj); in __kobject_del()
662 kobject_name(kobj), kobj, __func__, kobj->parent); in kobject_cleanup()
666 kobject_name(kobj), kobj); in kobject_cleanup()
671 kobject_name(kobj), kobj); in kobject_cleanup()
680 kobject_name(kobj), kobj); in kobject_cleanup()
[all …]
/linux-6.3-rc2/mm/damon/
A Dsysfs-schemes.c17 struct kobject kobj; member
117 struct kobject kobj; member
148 kfree(container_of(kobj, struct damon_sysfs_scheme_regions, kobj)); in damon_sysfs_scheme_regions_release()
227 kfree(container_of(kobj, struct damon_sysfs_stats, kobj)); in damon_sysfs_stats_release()
494 kfree(container_of(kobj, struct damon_sysfs_scheme_filters, kobj)); in damon_sysfs_scheme_filters_release()
653 kfree(container_of(kobj, struct damon_sysfs_watermarks, kobj)); in damon_sysfs_watermarks_release()
772 kfree(container_of(kobj, struct damon_sysfs_weights, kobj)); in damon_sysfs_weights_release()
903 kfree(container_of(kobj, struct damon_sysfs_quotas, kobj)); in damon_sysfs_quotas_release()
1270 kfree(container_of(kobj, struct damon_sysfs_scheme, kobj)); in damon_sysfs_scheme_release()
1374 schemes = container_of(kobj, struct damon_sysfs_schemes, kobj); in nr_schemes_store()
[all …]
A Dsysfs.c19 struct kobject kobj; member
68 kfree(container_of(kobj, struct damon_sysfs_region, kobj)); in damon_sysfs_region_release()
175 regions = container_of(kobj, struct damon_sysfs_regions, kobj); in nr_regions_store()
189 kfree(container_of(kobj, struct damon_sysfs_regions, kobj)); in damon_sysfs_regions_release()
268 kfree(container_of(kobj, struct damon_sysfs_target, kobj)); in damon_sysfs_target_release()
379 targets = container_of(kobj, struct damon_sysfs_targets, kobj); in nr_targets_store()
393 kfree(container_of(kobj, struct damon_sysfs_targets, kobj)); in damon_sysfs_targets_release()
513 kfree(container_of(kobj, struct damon_sysfs_intervals, kobj)); in damon_sysfs_intervals_release()
607 kfree(container_of(kobj, struct damon_sysfs_attrs, kobj)); in damon_sysfs_attrs_release()
787 kfree(container_of(kobj, struct damon_sysfs_context, kobj)); in damon_sysfs_context_release()
[all …]
A Dsysfs-common.c27 range->kobj = (struct kobject){}; in damon_sysfs_ul_range_alloc()
37 struct damon_sysfs_ul_range *range = container_of(kobj, in min_show()
38 struct damon_sysfs_ul_range, kobj); in min_show()
46 struct damon_sysfs_ul_range *range = container_of(kobj, in min_store()
47 struct damon_sysfs_ul_range, kobj); in min_store()
62 struct damon_sysfs_ul_range *range = container_of(kobj, in max_show()
63 struct damon_sysfs_ul_range, kobj); in max_show()
71 struct damon_sysfs_ul_range *range = container_of(kobj, in max_store()
72 struct damon_sysfs_ul_range, kobj); in max_store()
84 void damon_sysfs_ul_range_release(struct kobject *kobj) in damon_sysfs_ul_range_release() argument
[all …]
/linux-6.3-rc2/include/linux/
A Dkobject.h90 return kobj->name; in kobject_name()
98 int kobject_init_and_add(struct kobject *kobj,
102 extern void kobject_del(struct kobject *kobj);
112 struct kobject *kobj);
113 extern void kobject_put(struct kobject *kobj);
121 void (*release)(struct kobject *kobj);
138 int (* const filter)(const struct kobject *kobj);
175 struct kobject kobj; member
188 return kobj ? container_of(kobj, struct kset, kobj) : NULL; in to_kset()
198 kobject_put(&k->kobj); in kset_put()
[all …]
A Dsysfs.h262 void sysfs_remove_dir(struct kobject *kobj);
290 void sysfs_remove_bin_file(struct kobject *kobj,
313 int sysfs_update_group(struct kobject *kobj,
315 void sysfs_remove_group(struct kobject *kobj,
317 void sysfs_remove_groups(struct kobject *kobj,
319 int sysfs_add_file_to_group(struct kobject *kobj,
323 int sysfs_merge_group(struct kobject *kobj,
325 void sysfs_unmerge_group(struct kobject *kobj,
353 int sysfs_group_change_owner(struct kobject *kobj,
623 return sysfs_create_file_ns(kobj, attr, NULL); in sysfs_create_file()
[all …]
/linux-6.3-rc2/fs/sysfs/
A Dgroup.c115 if (WARN_ON(!kobj || (!update && !kobj->sd))) in internal_create_group()
119 if (unlikely(update && !kobj->sd)) in internal_create_group()
123 kobj->name, grp->name ?: ""); in internal_create_group()
132 kobj->name, grp->name); in internal_create_group()
138 uid, gid, kobj, NULL); in internal_create_group()
146 kn = kobj->sd; in internal_create_group()
312 sysfs_remove_group(kobj, groups[i]); in sysfs_remove_groups()
528 if (!kobj->state_in_sysfs) in sysfs_group_change_owner()
534 kernfs_get(kobj->sd); in sysfs_group_change_owner()
535 grp_kn = kobj->sd; in sysfs_group_change_owner()
[all …]
A Dfile.c32 return kobj->ktype ? kobj->ktype->sysfs_ops : NULL; in sysfs_file_ops()
267 kobject_name(kobj))) in sysfs_add_file_mode_ns()
351 if (WARN_ON(!kobj || !kobj->sd || !attr)) in sysfs_create_file_ns()
390 parent = kobj->sd; in sysfs_add_file_to_group()
449 kobject_get(kobj); in sysfs_break_active_protection()
474 kobject_put(kobj); in sysfs_unbreak_active_protection()
542 parent = kobj->sd; in sysfs_remove_file_from_group()
564 if (WARN_ON(!kobj || !kobj->sd || !attr)) in sysfs_create_bin_file()
658 if (!kobj->state_in_sysfs) in sysfs_file_change_owner()
696 if (!kobj->state_in_sysfs) in sysfs_change_owner()
[all …]
A Ddir.c46 if (WARN_ON(!kobj)) in sysfs_create_dir_ns()
49 if (kobj->parent) in sysfs_create_dir_ns()
50 parent = kobj->parent->sd; in sysfs_create_dir_ns()
57 kobject_get_ownership(kobj, &uid, &gid); in sysfs_create_dir_ns()
60 kobj, ns); in sysfs_create_dir_ns()
67 kobj->sd = kn; in sysfs_create_dir_ns()
79 void sysfs_remove_dir(struct kobject *kobj) in sysfs_remove_dir() argument
81 struct kernfs_node *kn = kobj->sd; in sysfs_remove_dir()
96 kobj->sd = NULL; in sysfs_remove_dir()
111 parent = kernfs_get_parent(kobj->sd); in sysfs_rename_dir_ns()
[all …]
A Dsymlink.c72 if (!kobj) in sysfs_do_create_link()
75 parent = kobj->sd; in sysfs_do_create_link()
92 return sysfs_do_create_link(kobj, target, name, 1); in sysfs_create_link()
108 return sysfs_do_create_link(kobj, target, name, 0); in sysfs_create_link_nowarn()
132 if (targ->sd && kernfs_ns_enabled(kobj->sd)) in sysfs_delete_link()
135 kernfs_remove_by_name_ns(kobj->sd, name, ns); in sysfs_delete_link()
143 void sysfs_remove_link(struct kobject *kobj, const char *name) in sysfs_remove_link() argument
147 if (!kobj) in sysfs_remove_link()
150 parent = kobj->sd; in sysfs_remove_link()
173 if (!kobj) in sysfs_rename_link_ns()
[all …]
/linux-6.3-rc2/drivers/cpuidle/
A Dsysfs.c149 struct kobject kobj; member
155 container_of(kobj, struct cpuidle_device_kobj, kobj); in to_cpuidle_device()
198 container_of(kobj, struct cpuidle_device_kobj, kobj); in cpuidle_sysfs_release()
344 struct kobject kobj; member
385 ret = sysfs_create_group(&kobj->kobj, &cpuidle_state_s2idle_group); in cpuidle_add_s2idle_attr_group()
393 sysfs_remove_group(&kobj->kobj, &cpuidle_state_s2idle_group); in cpuidle_remove_s2idle_attr_group()
479 if (!kobj) { in cpuidle_add_state_sysfs()
488 ret = kobject_init_and_add(&kobj->kobj, &ktype_state_cpuidle, in cpuidle_add_state_sysfs()
491 kobject_put(&kobj->kobj); in cpuidle_add_state_sysfs()
492 kfree(kobj); in cpuidle_add_state_sysfs()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/i915/gt/
A Dsysfs_engines.c21 return container_of(kobj, struct kobj_engine, base)->engine; in kobj_to_engine()
27 return sprintf(buf, "%s\n", kobj_to_engine(kobj)->name); in name_show()
125 struct intel_engine_cs *engine = kobj_to_engine(kobj); in caps_show()
146 struct intel_engine_cs *engine = kobj_to_engine(kobj); in max_spin_store()
419 static void kobj_engine_release(struct kobject *kobj) in kobj_engine_release() argument
421 kfree(kobj); in kobj_engine_release()
512 struct kobject *kobj; in intel_engines_add_sysfs() local
514 kobj = kobj_engine(dir, engine); in intel_engines_add_sysfs()
515 if (!kobj) in intel_engines_add_sysfs()
518 if (sysfs_create_files(kobj, files)) in intel_engines_add_sysfs()
[all …]
A Dintel_gt_sysfs_pm.c34 if (!is_object_gt(kobj)) { in sysfs_gt_attribute_w_func()
36 struct device *dev = kobj_to_dev(kobj); in sysfs_gt_attribute_w_func()
62 if (!is_object_gt(kobj)) { in sysfs_gt_attribute_r_func()
64 struct device *dev = kobj_to_dev(kobj); in sysfs_gt_attribute_r_func()
294 return is_object_gt(kobj) ? in __intel_gt_sysfs_create_group()
296 sysfs_merge_group(kobj, &grp[1]); in __intel_gt_sysfs_create_group()
711 if (is_object_gt(kobj)) { in intel_sysfs_rps_init()
719 ret = sysfs_create_files(kobj, attrs); in intel_sysfs_rps_init()
733 intel_sysfs_rc6_init(gt, kobj); in intel_gt_sysfs_pm_init()
735 ret = intel_sysfs_rps_init(gt, kobj); in intel_gt_sysfs_pm_init()
[all …]
/linux-6.3-rc2/drivers/edac/
A Dedac_device_sysfs.c276 kobject_put(&edac_dev->kobj); in edac_device_register_sysfs_main_kobj()
299 kobject_put(&dev->kobj); in edac_device_unregister_sysfs_main_kobj()
332 instance = to_instance(kobj); in edac_device_ctrl_instance_release()
437 block = to_block(kobj); in edac_device_ctrl_block_release()
520 &block->kobj, &block->kobj.parent); in edac_device_create_block()
536 &instance->kobj, in edac_device_create_block()
554 sysfs_attrib, &block->kobj); in edac_device_create_block()
569 kobject_put(&block->kobj); in edac_device_create_block()
600 kobject_put(&block->kobj); in edac_device_delete_block()
667 kobject_put(&instance->kobj); in edac_device_create_instance()
[all …]
/linux-6.3-rc2/drivers/block/rnbd/
A Drnbd-srv-sysfs.c89 sess_dev = container_of(kobj, struct rnbd_srv_sess_dev, kobj); in read_only_show()
104 sess_dev = container_of(kobj, struct rnbd_srv_sess_dev, kobj); in access_mode_show()
118 sess_dev = container_of(kobj, struct rnbd_srv_sess_dev, kobj); in mapping_path_show()
139 sess_dev = container_of(kobj, struct rnbd_srv_sess_dev, kobj); in rnbd_srv_dev_session_force_close_store()
172 sysfs_remove_group(&sess_dev->kobj, in rnbd_srv_destroy_dev_session_sysfs()
175 kobject_del(&sess_dev->kobj); in rnbd_srv_destroy_dev_session_sysfs()
176 kobject_put(&sess_dev->kobj); in rnbd_srv_destroy_dev_session_sysfs()
183 sess_dev = container_of(kobj, struct rnbd_srv_sess_dev, kobj); in rnbd_srv_sess_dev_release()
200 kobject_put(&sess_dev->kobj); in rnbd_srv_create_dev_session_sysfs()
207 kobject_del(&sess_dev->kobj); in rnbd_srv_create_dev_session_sysfs()
[all …]
/linux-6.3-rc2/arch/powerpc/kernel/
A Dsecvar-sysfs.c44 rc = secvar_ops->get(kobj->name, strlen(kobj->name) + 1, NULL, &dsize); in size_show()
62 rc = secvar_ops->get(kobj->name, strlen(kobj->name) + 1, NULL, &dsize); in data_read()
74 rc = secvar_ops->get(kobj->name, strlen(kobj->name) + 1, data, &dsize); in data_read()
94 rc = secvar_ops->set(kobj->name, strlen(kobj->name) + 1, buf, count); in update_write()
163 struct kobject *kobj; in add_var() local
166 kobj = kzalloc(sizeof(*kobj), GFP_KERNEL); in add_var()
167 if (!kobj) in add_var()
170 kobject_init(kobj, &secvar_ktype); in add_var()
172 rc = kobject_add(kobj, &secvar_kset->kobj, "%s", name); in add_var()
176 kobject_put(kobj); in add_var()
[all …]
/linux-6.3-rc2/fs/btrfs/
A Dsysfs.c58 struct kobject kobj; member
1325 while (kobj) { in get_btrfs_kobj()
1327 return kobj; in get_btrfs_kobj()
1328 kobj = kobj->parent; in get_btrfs_kobj()
1596 ret = kobject_add(&rkobj->kobj, &space_info->kobj, "%s", in btrfs_sysfs_add_block_group_type()
1619 struct kobject *kobj; in btrfs_sysfs_remove_space_info() local
1623 if (kobj) { in btrfs_sysfs_remove_space_info()
1624 kobject_del(kobj); in btrfs_sysfs_remove_space_info()
1625 kobject_put(kobj); in btrfs_sysfs_remove_space_info()
2145 kfree(kobj); in qgroups_release()
[all …]
/linux-6.3-rc2/drivers/infiniband/ulp/rtrs/
A Drtrs-srv-sysfs.c20 srv_path = container_of(kobj, struct rtrs_srv_path, kobj); in rtrs_srv_release()
43 srv_path = container_of(kobj, struct rtrs_srv_path, kobj); in rtrs_srv_disconnect_store()
73 srv_path = container_of(kobj, typeof(*srv_path), kobj); in rtrs_srv_hca_port_show()
88 srv_path = container_of(kobj, struct rtrs_srv_path, kobj); in rtrs_srv_hca_name_show()
103 srv_path = container_of(kobj, struct rtrs_srv_path, kobj); in rtrs_srv_src_addr_show()
119 srv_path = container_of(kobj, struct rtrs_srv_path, kobj); in rtrs_srv_dst_addr_show()
238 &srv_path->kobj, "stats"); in rtrs_srv_create_stats_files()
296 kobject_del(&srv_path->kobj); in rtrs_srv_create_path_files()
298 kobject_put(&srv_path->kobj); in rtrs_srv_create_path_files()
313 if (srv_path->kobj.state_in_sysfs) { in rtrs_srv_destroy_path_files()
[all …]
A Drtrs-clt-sysfs.c23 clt_path = container_of(kobj, struct rtrs_clt_path, kobj); in rtrs_clt_path_release()
203 clt_path = container_of(kobj, struct rtrs_clt_path, kobj); in rtrs_clt_state_show()
226 clt_path = container_of(kobj, struct rtrs_clt_path, kobj); in rtrs_clt_reconnect_store()
255 clt_path = container_of(kobj, struct rtrs_clt_path, kobj); in rtrs_clt_disconnect_store()
283 clt_path = container_of(kobj, struct rtrs_clt_path, kobj); in rtrs_clt_remove_path_store()
339 clt_path = container_of(kobj, typeof(*clt_path), kobj); in rtrs_clt_hca_port_show()
353 clt_path = container_of(kobj, struct rtrs_clt_path, kobj); in rtrs_clt_hca_name_show()
367 clt_path = container_of(kobj, struct rtrs_clt_path, kobj); in rtrs_clt_cur_latency_show()
383 clt_path = container_of(kobj, struct rtrs_clt_path, kobj); in rtrs_clt_src_addr_show()
400 clt_path = container_of(kobj, struct rtrs_clt_path, kobj); in rtrs_clt_dst_addr_show()
[all …]
/linux-6.3-rc2/drivers/platform/x86/
A Dthink-lmi.c177 #define to_tlmi_pwd_setting(kobj) container_of(kobj, struct tlmi_pwd_setting, kobj) argument
178 #define to_tlmi_attr_setting(kobj) container_of(kobj, struct tlmi_attr_setting, kobj) argument
1057 return kattr->show(kobj, kattr, buf); in tlmi_attr_show()
1175 kobject_put(&tlmi_priv.setting[i]->kobj); in tlmi_release_attr()
1190 kobject_put(&tlmi_priv.pwd_admin->kobj); in tlmi_release_attr()
1192 kobject_put(&tlmi_priv.pwd_power->kobj); in tlmi_release_attr()
1196 kobject_put(&tlmi_priv.pwd_system->kobj); in tlmi_release_attr()
1198 kobject_put(&tlmi_priv.pwd_hdd->kobj); in tlmi_release_attr()
1200 kobject_put(&tlmi_priv.pwd_nvme->kobj); in tlmi_release_attr()
1222 &tlmi_priv.class_dev->kobj); in tlmi_sysfs_init()
[all …]
/linux-6.3-rc2/fs/nfs/
A Dsysfs.c25 kfree(kobj); in nfs_netns_object_release()
29 const struct kobject *kobj) in nfs_netns_object_child_ns_type() argument
43 struct kobject *kobj; in nfs_netns_object_alloc() local
45 kobj = kzalloc(sizeof(*kobj), GFP_KERNEL); in nfs_netns_object_alloc()
46 if (kobj) { in nfs_netns_object_alloc()
47 kobj->kset = kset; in nfs_netns_object_alloc()
50 return kobj; in nfs_netns_object_alloc()
51 kobject_put(kobj); in nfs_netns_object_alloc()
79 struct nfs_netns_client *c = container_of(kobj, in nfs_netns_identifier_show()
102 struct nfs_netns_client *c = container_of(kobj, in nfs_netns_identifier_store()
[all …]
/linux-6.3-rc2/drivers/vfio/mdev/
A Dmdev_sysfs.c35 struct mdev_type *type = to_mdev_type(kobj); in mdev_type_attr_show()
182 kobject_put(&type->kobj); in mdev_type_add()
195 kobject_del(&type->kobj); in mdev_type_add()
196 kobject_put(&type->kobj); in mdev_type_add()
203 kobject_del(&type->kobj); in mdev_type_remove()
204 kobject_put(&type->kobj); in mdev_type_remove()
222 NULL, &parent->dev->kobj); in parent_create_sysfs_files()
278 struct kobject *kobj = &mdev->dev.kobj; in mdev_create_sysfs_files() local
285 ret = sysfs_create_link(kobj, &type->kobj, "mdev_type"); in mdev_create_sysfs_files()
297 struct kobject *kobj = &mdev->dev.kobj; in mdev_remove_sysfs_files() local
[all …]
/linux-6.3-rc2/arch/powerpc/platforms/pseries/
A Dvas-sysfs.c22 struct kobject kobj; member
128 centry = to_caps_entry(kobj); in vas_type_show()
145 centry = to_caps_entry(kobj); in vas_type_store()
178 struct kobject **kobj) in vas_caps_kobj_name() argument
184 *kobj = gzip_caps_kobj; in vas_caps_kobj_name()
188 *kobj = gzip_caps_kobj; in vas_caps_kobj_name()
201 struct kobject *kobj = NULL; in sysfs_add_vas_caps() local
212 if (kobj) { in sysfs_add_vas_caps()
213 ret = kobject_add(&centry->kobj, kobj, "%s", name); in sysfs_add_vas_caps()
218 kobject_put(&centry->kobj); in sysfs_add_vas_caps()
[all …]
/linux-6.3-rc2/block/
A Dblk-mq-sysfs.c20 struct blk_mq_ctxs *ctxs = container_of(kobj, struct blk_mq_ctxs, kobj); in blk_mq_sysfs_release()
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()
37 kobj); in blk_mq_hw_sysfs_release()
60 hctx = container_of(kobj, struct blk_mq_hw_ctx, kobj); in blk_mq_hw_sysfs_show()
155 kobject_del(&ctx->kobj); in blk_mq_unregister_hctx()
157 kobject_del(&hctx->kobj); in blk_mq_unregister_hctx()
174 ret = kobject_add(&ctx->kobj, &hctx->kobj, "cpu%u", ctx->cpu); in blk_mq_register_hctx()
183 kobject_del(&ctx->kobj); in blk_mq_register_hctx()
185 kobject_del(&hctx->kobj); in blk_mq_register_hctx()
[all …]
/linux-6.3-rc2/arch/powerpc/platforms/powernv/
A Dopal-elog.c21 struct kobject kobj; member
103 elog = to_elog_obj(kobj); in elog_attr_show()
119 elog = to_elog_obj(kobj); in elog_attr_store()
136 elog = to_elog_obj(kobj); in elog_release()
227 kobject_put(&elog->kobj); in create_elog_obj()
246 kobject_get(&elog->kobj); in create_elog_obj()
252 kobject_put(&elog->kobj); in create_elog_obj()
256 kobject_put(&elog->kobj); in create_elog_obj()
271 struct kobject *kobj; in elog_event() local
295 if (kobj) { in elog_event()
[all …]

Completed in 66 milliseconds

12345678910>>...38