Home
last modified time | relevance | path

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

/kernel/
Dksysfs.c31 static ssize_t uevent_seqnum_show(struct kobject *kobj, in uevent_seqnum_show() argument
40 static ssize_t uevent_helper_show(struct kobject *kobj, in uevent_helper_show() argument
45 static ssize_t uevent_helper_store(struct kobject *kobj, in uevent_helper_store() argument
61 static ssize_t profiling_show(struct kobject *kobj, in profiling_show() argument
66 static ssize_t profiling_store(struct kobject *kobj, in profiling_store() argument
92 static ssize_t kexec_loaded_show(struct kobject *kobj, in kexec_loaded_show() argument
99 static ssize_t kexec_crash_loaded_show(struct kobject *kobj, in kexec_crash_loaded_show() argument
106 static ssize_t kexec_crash_size_show(struct kobject *kobj, in kexec_crash_size_show() argument
116 static ssize_t kexec_crash_size_store(struct kobject *kobj, in kexec_crash_size_store() argument
135 static ssize_t vmcoreinfo_show(struct kobject *kobj, in vmcoreinfo_show() argument
[all …]
Dparams.c539 #define to_module_kobject(n) container_of(n, struct module_kobject, kobj)
728 err = sysfs_create_group(&mod->mkobj.kobj, &mod->mkobj.mp->grp); in module_param_sysfs_setup()
744 sysfs_remove_group(&mod->mkobj.kobj, &mod->mkobj.mp->grp); in module_param_sysfs_remove()
764 struct kobject *kobj; in locate_module_kobject() local
767 kobj = kset_find_obj(module_kset, name); in locate_module_kobject()
768 if (kobj) { in locate_module_kobject()
769 mk = to_module_kobject(kobj); in locate_module_kobject()
775 mk->kobj.kset = module_kset; in locate_module_kobject()
776 err = kobject_init_and_add(&mk->kobj, &module_ktype, NULL, in locate_module_kobject()
780 err = sysfs_create_file(&mk->kobj, &module_uevent.attr); in locate_module_kobject()
[all …]
Dreboot.c700 static ssize_t mode_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in mode_show() argument
726 static ssize_t mode_store(struct kobject *kobj, struct kobj_attribute *attr, in mode_store() argument
752 static ssize_t force_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in force_show() argument
756 static ssize_t force_store(struct kobject *kobj, struct kobj_attribute *attr, in force_store() argument
774 static ssize_t type_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in type_show() argument
803 static ssize_t type_store(struct kobject *kobj, struct kobj_attribute *attr, in type_store() argument
832 static ssize_t cpu_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in cpu_show() argument
836 static ssize_t cpu_store(struct kobject *kobj, struct kobj_attribute *attr, in cpu_store() argument
Dpadata.c843 container_of(_kobj, struct padata_instance, kobj)
847 static void padata_sysfs_release(struct kobject *kobj) in padata_sysfs_release() argument
849 struct padata_instance *pinst = kobj2pinst(kobj); in padata_sysfs_release()
927 static ssize_t padata_sysfs_show(struct kobject *kobj, in padata_sysfs_show() argument
934 pinst = kobj2pinst(kobj); in padata_sysfs_show()
942 static ssize_t padata_sysfs_store(struct kobject *kobj, struct attribute *attr, in padata_sysfs_store() argument
949 pinst = kobj2pinst(kobj); in padata_sysfs_store()
1011 kobject_init(&pinst->kobj, &padata_attr_type); in padata_alloc()
1047 kobject_put(&pinst->kobj); in padata_free()
Dmodule.c1172 rc = kobject_synth_uevent(&mk->kobj, buffer, count); in store_uevent()
1516 static ssize_t module_sect_read(struct file *file, struct kobject *kobj, in module_sect_read() argument
1597 if (sysfs_create_group(&mod->mkobj.kobj, &sect_attrs->grp)) in add_sect_attrs()
1609 sysfs_remove_group(&mod->mkobj.kobj, in remove_sect_attrs()
1630 static ssize_t module_notes_read(struct file *filp, struct kobject *kobj, in module_notes_read() argument
1695 notes_attrs->dir = kobject_create_and_add("notes", &mod->mkobj.kobj); in add_notes_attrs()
1759 &mod->mkobj.kobj, mod->name); in add_usage_links()
1790 error = sysfs_create_file(&mod->mkobj.kobj, in module_add_modinfo_attrs()
1819 sysfs_remove_file(&mod->mkobj.kobj, &attr->attr); in module_remove_modinfo_attrs()
1830 kobject_put(&mod->mkobj.kobj); in mod_kobject_put()
[all …]
Dkheaders.c33 ikheaders_read(struct file *file, struct kobject *kobj, in ikheaders_read() argument
Dcpu.c2276 kobject_uevent(&dev->kobj, KOBJ_OFFLINE); in cpuhp_offline_cpu_device()
2285 kobject_uevent(&dev->kobj, KOBJ_ONLINE); in cpuhp_online_cpu_device()
2602 return sysfs_create_group(&cpu_subsys.dev_root->kobj, in cpu_smt_sysfs_init()
2614 ret = sysfs_create_group(&cpu_subsys.dev_root->kobj, in cpuhp_sysfs_init()
2624 ret = sysfs_create_group(&dev->kobj, &cpuhp_cpu_attr_group); in cpuhp_sysfs_init()
Dpanic.c112 static ssize_t warn_count_show(struct kobject *kobj, struct kobj_attribute *attr, in warn_count_show() argument
Dexit.c104 static ssize_t oops_count_show(struct kobject *kobj, struct kobj_attribute *attr, in oops_count_show() argument
Dworkqueue.c5826 kobject_uevent(&wq_dev->dev.kobj, KOBJ_ADD); in workqueue_sysfs_register()
/kernel/power/
Dmain.c100 static ssize_t pm_async_show(struct kobject *kobj, struct kobj_attribute *attr, in pm_async_show() argument
106 static ssize_t pm_async_store(struct kobject *kobj, struct kobj_attribute *attr, in pm_async_store() argument
124 static ssize_t mem_sleep_show(struct kobject *kobj, struct kobj_attribute *attr, in mem_sleep_show() argument
166 static ssize_t mem_sleep_store(struct kobject *kobj, struct kobj_attribute *attr, in mem_sleep_store() argument
202 static ssize_t sync_on_suspend_show(struct kobject *kobj, in sync_on_suspend_show() argument
208 static ssize_t sync_on_suspend_store(struct kobject *kobj, in sync_on_suspend_store() argument
239 static ssize_t pm_test_show(struct kobject *kobj, struct kobj_attribute *attr, in pm_test_show() argument
260 static ssize_t pm_test_store(struct kobject *kobj, struct kobj_attribute *attr, in pm_test_store() argument
311 static ssize_t _name##_show(struct kobject *kobj, \
329 static ssize_t last_failed_dev_show(struct kobject *kobj, in last_failed_dev_show() argument
[all …]
Dwakeup_reason.c60 static struct kobject *kobj; variable
300 static ssize_t last_resume_reason_show(struct kobject *kobj, in last_resume_reason_show() argument
330 static ssize_t last_suspend_time_show(struct kobject *kobj, in last_suspend_time_show() argument
409 kobj = kobject_create_and_add("wakeup_reasons", kernel_kobj); in wakeup_reason_init()
410 if (!kobj) { in wakeup_reason_init()
415 if (sysfs_create_group(kobj, &attr_group)) { in wakeup_reason_init()
429 sysfs_remove_group(kobj, &attr_group); in wakeup_reason_init()
431 kobject_put(kobj); in wakeup_reason_init()
Dhibernate.c1062 static ssize_t disk_show(struct kobject *kobj, struct kobj_attribute *attr, in disk_show() argument
1097 static ssize_t disk_store(struct kobject *kobj, struct kobj_attribute *attr, in disk_store() argument
1148 static ssize_t resume_show(struct kobject *kobj, struct kobj_attribute *attr, in resume_show() argument
1155 static ssize_t resume_store(struct kobject *kobj, struct kobj_attribute *attr, in resume_store() argument
1185 static ssize_t resume_offset_show(struct kobject *kobj, in resume_offset_show() argument
1191 static ssize_t resume_offset_store(struct kobject *kobj, in resume_offset_store() argument
1208 static ssize_t image_size_show(struct kobject *kobj, struct kobj_attribute *attr, in image_size_show() argument
1214 static ssize_t image_size_store(struct kobject *kobj, struct kobj_attribute *attr, in image_size_store() argument
1229 static ssize_t reserved_size_show(struct kobject *kobj, in reserved_size_show() argument
1235 static ssize_t reserved_size_store(struct kobject *kobj, in reserved_size_store() argument
/kernel/livepatch/
Dcore.c332 static ssize_t enabled_store(struct kobject *kobj, struct kobj_attribute *attr, in enabled_store() argument
343 patch = container_of(kobj, struct klp_patch, kobj); in enabled_store()
375 static ssize_t enabled_show(struct kobject *kobj, in enabled_show() argument
380 patch = container_of(kobj, struct klp_patch, kobj); in enabled_show()
384 static ssize_t transition_show(struct kobject *kobj, in transition_show() argument
389 patch = container_of(kobj, struct klp_patch, kobj); in transition_show()
394 static ssize_t force_store(struct kobject *kobj, struct kobj_attribute *attr, in force_store() argument
410 patch = container_of(kobj, struct klp_patch, kobj); in force_store()
552 static void klp_kobj_release_patch(struct kobject *kobj) in klp_kobj_release_patch() argument
556 patch = container_of(kobj, struct klp_patch, kobj); in klp_kobj_release_patch()
[all …]
/kernel/irq/
Dirqdesc.c138 static void irq_kobj_release(struct kobject *kobj);
146 static ssize_t per_cpu_count_show(struct kobject *kobj, in per_cpu_count_show() argument
149 struct irq_desc *desc = container_of(kobj, struct irq_desc, kobj); in per_cpu_count_show()
166 static ssize_t chip_name_show(struct kobject *kobj, in chip_name_show() argument
169 struct irq_desc *desc = container_of(kobj, struct irq_desc, kobj); in chip_name_show()
183 static ssize_t hwirq_show(struct kobject *kobj, in hwirq_show() argument
186 struct irq_desc *desc = container_of(kobj, struct irq_desc, kobj); in hwirq_show()
198 static ssize_t type_show(struct kobject *kobj, in type_show() argument
201 struct irq_desc *desc = container_of(kobj, struct irq_desc, kobj); in type_show()
214 static ssize_t wakeup_show(struct kobject *kobj, in wakeup_show() argument
[all …]
Dmsi.c157 ret = sysfs_create_groups(&dev->kobj, msi_irq_groups); in msi_populate_sysfs()
193 sysfs_remove_groups(&dev->kobj, msi_irq_groups); in msi_destroy_sysfs()
/kernel/sched/
Dcpufreq_schedutil.c555 static void sugov_tunables_free(struct kobject *kobj) in sugov_tunables_free() argument
557 struct gov_attr_set *attr_set = container_of(kobj, struct gov_attr_set, kobj); in sugov_tunables_free()
719 ret = kobject_init_and_add(&tunables->attr_set.kobj, &sugov_tunables_ktype, in sugov_init()
730 kobject_put(&tunables->attr_set.kobj); in sugov_init()
/kernel/bpf/
Dsysfs_btf.c16 btf_vmlinux_read(struct file *file, struct kobject *kobj, in btf_vmlinux_read() argument
Dbtf.c6054 btf_module_read(struct file *file, struct kobject *kobj, in btf_module_read() argument
/kernel/trace/
Dpreemptirq_delay_test.c166 static ssize_t trigger_store(struct kobject *kobj, struct kobj_attribute *attr, in trigger_store() argument
Dblktrace.c1874 return sysfs_create_group(&dev->kobj, &blk_trace_attr_group); in blk_trace_init_sysfs()
1879 sysfs_remove_group(&dev->kobj, &blk_trace_attr_group); in blk_trace_remove_sysfs()
/kernel/cgroup/
Dcgroup.c6851 static ssize_t delegate_show(struct kobject *kobj, struct kobj_attribute *attr, in delegate_show() argument
6870 static ssize_t features_show(struct kobject *kobj, struct kobj_attribute *attr, in features_show() argument
/kernel/events/
Dcore.c11203 static umode_t pmu_dev_is_visible(struct kobject *kobj, struct attribute *a, int n) in pmu_dev_is_visible() argument
11205 struct device *dev = kobj_to_dev(kobj); in pmu_dev_is_visible()
11259 ret = sysfs_update_groups(&pmu->dev->kobj, pmu->attr_update); in pmu_dev_alloc()