Home
last modified time | relevance | path

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

/kernel/
Dksysfs.c30 static ssize_t uevent_seqnum_show(struct kobject *kobj, in uevent_seqnum_show() argument
39 static ssize_t uevent_helper_show(struct kobject *kobj, in uevent_helper_show() argument
44 static ssize_t uevent_helper_store(struct kobject *kobj, in uevent_helper_store() argument
60 static ssize_t profiling_show(struct kobject *kobj, in profiling_show() argument
65 static ssize_t profiling_store(struct kobject *kobj, in profiling_store() argument
91 static ssize_t kexec_loaded_show(struct kobject *kobj, in kexec_loaded_show() argument
98 static ssize_t kexec_crash_loaded_show(struct kobject *kobj, in kexec_crash_loaded_show() argument
105 static ssize_t kexec_crash_size_show(struct kobject *kobj, in kexec_crash_size_show() argument
115 static ssize_t kexec_crash_size_store(struct kobject *kobj, in kexec_crash_size_store() argument
134 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.c1088 static ssize_t mode_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in mode_show() argument
1114 static ssize_t mode_store(struct kobject *kobj, struct kobj_attribute *attr, in mode_store() argument
1140 static ssize_t force_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in force_show() argument
1144 static ssize_t force_store(struct kobject *kobj, struct kobj_attribute *attr, in force_store() argument
1162 static ssize_t type_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in type_show() argument
1191 static ssize_t type_store(struct kobject *kobj, struct kobj_attribute *attr, in type_store() argument
1220 static ssize_t cpu_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in cpu_show() argument
1224 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()
Dkheaders.c33 ikheaders_read(struct file *file, struct kobject *kobj, in ikheaders_read() argument
Dcpu.c2293 kobject_uevent(&dev->kobj, KOBJ_OFFLINE); in cpuhp_offline_cpu_device()
2302 kobject_uevent(&dev->kobj, KOBJ_ONLINE); in cpuhp_online_cpu_device()
2627 return sysfs_create_group(&cpu_subsys.dev_root->kobj, in cpu_smt_sysfs_init()
2639 ret = sysfs_create_group(&cpu_subsys.dev_root->kobj, in cpuhp_sysfs_init()
2649 ret = sysfs_create_group(&dev->kobj, &cpuhp_cpu_attr_group); in cpuhp_sysfs_init()
Dpanic.c115 static ssize_t warn_count_show(struct kobject *kobj, struct kobj_attribute *attr, in warn_count_show() argument
Dexit.c108 static ssize_t oops_count_show(struct kobject *kobj, struct kobj_attribute *attr, in oops_count_show() argument
Dworkqueue.c5782 kobject_uevent(&wq_dev->dev.kobj, KOBJ_ADD); in workqueue_sysfs_register()
/kernel/power/
Dmain.c103 static ssize_t pm_async_show(struct kobject *kobj, struct kobj_attribute *attr, in pm_async_show() argument
109 static ssize_t pm_async_store(struct kobject *kobj, struct kobj_attribute *attr, in pm_async_store() argument
127 static ssize_t mem_sleep_show(struct kobject *kobj, struct kobj_attribute *attr, in mem_sleep_show() argument
172 static ssize_t mem_sleep_store(struct kobject *kobj, struct kobj_attribute *attr, in mem_sleep_store() argument
208 static ssize_t sync_on_suspend_show(struct kobject *kobj, in sync_on_suspend_show() argument
214 static ssize_t sync_on_suspend_store(struct kobject *kobj, in sync_on_suspend_store() argument
245 static ssize_t pm_test_show(struct kobject *kobj, struct kobj_attribute *attr, in pm_test_show() argument
266 static ssize_t pm_test_store(struct kobject *kobj, struct kobj_attribute *attr, in pm_test_store() argument
318 static ssize_t _name##_show(struct kobject *kobj, \
336 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.c1080 static ssize_t disk_show(struct kobject *kobj, struct kobj_attribute *attr, in disk_show() argument
1115 static ssize_t disk_store(struct kobject *kobj, struct kobj_attribute *attr, in disk_store() argument
1167 static ssize_t resume_show(struct kobject *kobj, struct kobj_attribute *attr, in resume_show() argument
1174 static ssize_t resume_store(struct kobject *kobj, struct kobj_attribute *attr, in resume_store() argument
1206 static ssize_t resume_offset_show(struct kobject *kobj, in resume_offset_show() argument
1212 static ssize_t resume_offset_store(struct kobject *kobj, in resume_offset_store() argument
1229 static ssize_t image_size_show(struct kobject *kobj, struct kobj_attribute *attr, in image_size_show() argument
1235 static ssize_t image_size_store(struct kobject *kobj, struct kobj_attribute *attr, in image_size_store() argument
1250 static ssize_t reserved_size_show(struct kobject *kobj, in reserved_size_show() argument
1256 static ssize_t reserved_size_store(struct kobject *kobj, in reserved_size_store() argument
/kernel/livepatch/
Dcore.c333 static ssize_t enabled_store(struct kobject *kobj, struct kobj_attribute *attr, in enabled_store() argument
344 patch = container_of(kobj, struct klp_patch, kobj); in enabled_store()
376 static ssize_t enabled_show(struct kobject *kobj, in enabled_show() argument
381 patch = container_of(kobj, struct klp_patch, kobj); in enabled_show()
385 static ssize_t transition_show(struct kobject *kobj, in transition_show() argument
390 patch = container_of(kobj, struct klp_patch, kobj); in transition_show()
395 static ssize_t force_store(struct kobject *kobj, struct kobj_attribute *attr, in force_store() argument
411 patch = container_of(kobj, struct klp_patch, kobj); in force_store()
435 static ssize_t patched_show(struct kobject *kobj, in patched_show() argument
440 obj = container_of(kobj, struct klp_object, kobj); in patched_show()
[all …]
/kernel/module/
Dsysfs.c34 static ssize_t module_sect_read(struct file *file, struct kobject *kobj, in module_sect_read() argument
116 if (sysfs_create_group(&mod->mkobj.kobj, &sect_attrs->grp)) in add_sect_attrs()
128 sysfs_remove_group(&mod->mkobj.kobj, in remove_sect_attrs()
149 static ssize_t module_notes_read(struct file *filp, struct kobject *kobj, in module_notes_read() argument
214 notes_attrs->dir = kobject_create_and_add("notes", &mod->mkobj.kobj); in add_notes_attrs()
264 &mod->mkobj.kobj, mod->name); in add_usage_links()
286 sysfs_remove_file(&mod->mkobj.kobj, &attr->attr); in module_remove_modinfo_attrs()
311 error = sysfs_create_file(&mod->mkobj.kobj, in module_add_modinfo_attrs()
334 kobject_put(&mod->mkobj.kobj); in mod_kobject_put()
341 struct kobject *kobj; in mod_sysfs_init() local
[all …]
Ddecompress.c256 static ssize_t compression_show(struct kobject *kobj, in compression_show() argument
268 error = sysfs_create_file(&module_kset->kobj, in module_decompress_sysfs_init()
Dmain.c925 rc = kobject_synth_uevent(&mk->kobj, buffer, count); in store_uevent()
2520 kobject_uevent(&mod->mkobj.kobj, KOBJ_ADD); in do_init_module()
/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.c383 sysfs_remove_file_from_group(&dev->kobj, &attrs[i].attr, msi_irqs_group.name); in msi_sysfs_remove_desc()
410 ret = sysfs_add_file_to_group(&dev->kobj, &attrs[i].attr, msi_irqs_group.name); in msi_sysfs_populate_desc()
/kernel/sched/
Dcpufreq_schedutil.c548 static void sugov_tunables_free(struct kobject *kobj) in sugov_tunables_free() argument
550 struct gov_attr_set *attr_set = to_gov_attr_set(kobj); in sugov_tunables_free()
712 ret = kobject_init_and_add(&tunables->attr_set.kobj, &sugov_tunables_ktype, in sugov_init()
723 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.c7096 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
/kernel/cgroup/
Dcgroup.c7049 static ssize_t delegate_show(struct kobject *kobj, struct kobj_attribute *attr, in delegate_show() argument
7071 static ssize_t features_show(struct kobject *kobj, struct kobj_attribute *attr, in features_show() argument
/kernel/events/
Dcore.c11216 static umode_t pmu_dev_is_visible(struct kobject *kobj, struct attribute *a, int n) in pmu_dev_is_visible() argument
11218 struct device *dev = kobj_to_dev(kobj); in pmu_dev_is_visible()
11272 ret = sysfs_update_groups(&pmu->dev->kobj, pmu->attr_update); in pmu_dev_alloc()