Home
last modified time | relevance | path

Searched refs:kobj (Results 1 – 17 of 17) 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
111 static ssize_t kexec_crash_size_store(struct kobject *kobj, in kexec_crash_size_store() argument
130 static ssize_t vmcoreinfo_show(struct kobject *kobj, in vmcoreinfo_show() argument
[all …]
Dparams.c520 #define to_module_kobject(n) container_of(n, struct module_kobject, kobj)
709 err = sysfs_create_group(&mod->mkobj.kobj, &mod->mkobj.mp->grp); in module_param_sysfs_setup()
725 sysfs_remove_group(&mod->mkobj.kobj, &mod->mkobj.mp->grp); in module_param_sysfs_remove()
745 struct kobject *kobj; in locate_module_kobject() local
748 kobj = kset_find_obj(module_kset, name); in locate_module_kobject()
749 if (kobj) { in locate_module_kobject()
750 mk = to_module_kobject(kobj); in locate_module_kobject()
756 mk->kobj.kset = module_kset; in locate_module_kobject()
757 err = kobject_init_and_add(&mk->kobj, &module_ktype, NULL, in locate_module_kobject()
761 err = sysfs_create_file(&mk->kobj, &module_uevent.attr); in locate_module_kobject()
[all …]
Dpadata.c830 container_of(_kobj, struct padata_instance, kobj)
834 static void padata_sysfs_release(struct kobject *kobj) in padata_sysfs_release() argument
836 struct padata_instance *pinst = kobj2pinst(kobj); in padata_sysfs_release()
914 static ssize_t padata_sysfs_show(struct kobject *kobj, in padata_sysfs_show() argument
921 pinst = kobj2pinst(kobj); in padata_sysfs_show()
929 static ssize_t padata_sysfs_store(struct kobject *kobj, struct attribute *attr, in padata_sysfs_store() argument
936 pinst = kobj2pinst(kobj); in padata_sysfs_store()
1008 kobject_init(&pinst->kobj, &padata_attr_type); in padata_alloc()
1053 kobject_put(&pinst->kobj); in padata_free()
Dmodule.c1221 rc = kobject_synth_uevent(&mk->kobj, buffer, count); in store_uevent()
1580 if (sysfs_create_group(&mod->mkobj.kobj, &sect_attrs->grp)) in add_sect_attrs()
1592 sysfs_remove_group(&mod->mkobj.kobj, in remove_sect_attrs()
1611 static ssize_t module_notes_read(struct file *filp, struct kobject *kobj, in module_notes_read() argument
1676 notes_attrs->dir = kobject_create_and_add("notes", &mod->mkobj.kobj); in add_notes_attrs()
1740 &mod->mkobj.kobj, mod->name); in add_usage_links()
1771 error = sysfs_create_file(&mod->mkobj.kobj, in module_add_modinfo_attrs()
1798 sysfs_remove_file(&mod->mkobj.kobj, &attr->attr); in module_remove_modinfo_attrs()
1809 kobject_put(&mod->mkobj.kobj); in mod_kobject_put()
1816 struct kobject *kobj; in mod_sysfs_init() local
[all …]
Dkheaders.c33 ikheaders_read(struct file *file, struct kobject *kobj, in ikheaders_read() argument
Dcpu.c1302 kobject_uevent(&cpu_device->kobj, KOBJ_ONLINE); in enable_nonboot_cpus()
1926 kobject_uevent(&dev->kobj, KOBJ_OFFLINE); in cpuhp_offline_cpu_device()
1935 kobject_uevent(&dev->kobj, KOBJ_ONLINE); in cpuhp_online_cpu_device()
2240 return sysfs_create_group(&cpu_subsys.dev_root->kobj, in cpu_smt_sysfs_init()
2252 ret = sysfs_create_group(&cpu_subsys.dev_root->kobj, in cpuhp_sysfs_init()
2262 ret = sysfs_create_group(&dev->kobj, &cpuhp_cpu_attr_group); in cpuhp_sysfs_init()
Dworkqueue.c5667 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
207 static ssize_t pm_test_show(struct kobject *kobj, struct kobj_attribute *attr, in pm_test_show() argument
228 static ssize_t pm_test_store(struct kobject *kobj, struct kobj_attribute *attr, in pm_test_store() argument
279 static ssize_t _name##_show(struct kobject *kobj, \
297 static ssize_t last_failed_dev_show(struct kobject *kobj, in last_failed_dev_show() argument
311 static ssize_t last_failed_errno_show(struct kobject *kobj, in last_failed_errno_show() argument
325 static ssize_t last_failed_step_show(struct kobject *kobj, in last_failed_step_show() argument
[all …]
Dhibernate.c957 static ssize_t disk_show(struct kobject *kobj, struct kobj_attribute *attr, in disk_show() argument
992 static ssize_t disk_store(struct kobject *kobj, struct kobj_attribute *attr, in disk_store() argument
1043 static ssize_t resume_show(struct kobject *kobj, struct kobj_attribute *attr, in resume_show() argument
1050 static ssize_t resume_store(struct kobject *kobj, struct kobj_attribute *attr, in resume_store() argument
1079 static ssize_t resume_offset_show(struct kobject *kobj, in resume_offset_show() argument
1085 static ssize_t resume_offset_store(struct kobject *kobj, in resume_offset_store() argument
1102 static ssize_t image_size_show(struct kobject *kobj, struct kobj_attribute *attr, in image_size_show() argument
1108 static ssize_t image_size_store(struct kobject *kobj, struct kobj_attribute *attr, in image_size_store() argument
1123 static ssize_t reserved_size_show(struct kobject *kobj, in reserved_size_show() argument
1129 static ssize_t reserved_size_store(struct kobject *kobj, in reserved_size_store() argument
Dwakeup_reason.c44 static ssize_t last_resume_reason_show(struct kobject *kobj, struct kobj_attribute *attr, in last_resume_reason_show() argument
68 static ssize_t last_suspend_time_show(struct kobject *kobj, in last_suspend_time_show() argument
/kernel/livepatch/
Dcore.c311 static ssize_t enabled_store(struct kobject *kobj, struct kobj_attribute *attr, in enabled_store() argument
322 patch = container_of(kobj, struct klp_patch, kobj); in enabled_store()
354 static ssize_t enabled_show(struct kobject *kobj, in enabled_show() argument
359 patch = container_of(kobj, struct klp_patch, kobj); in enabled_show()
363 static ssize_t transition_show(struct kobject *kobj, in transition_show() argument
368 patch = container_of(kobj, struct klp_patch, kobj); in transition_show()
373 static ssize_t force_store(struct kobject *kobj, struct kobj_attribute *attr, in force_store() argument
389 patch = container_of(kobj, struct klp_patch, kobj); in force_store()
531 static void klp_kobj_release_patch(struct kobject *kobj) in klp_kobj_release_patch() argument
535 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 …]
/kernel/bpf/
Dsysfs_btf.c16 btf_vmlinux_read(struct file *file, struct kobject *kobj, in btf_vmlinux_read() argument
/kernel/sched/
Dcpufreq_schedutil.c784 ret = kobject_init_and_add(&tunables->attr_set.kobj, &sugov_tunables_ktype, in sugov_init()
795 kobject_put(&tunables->attr_set.kobj); in sugov_init()
/kernel/trace/
Dblktrace.c1863 return sysfs_create_group(&dev->kobj, &blk_trace_attr_group); in blk_trace_init_sysfs()
1868 sysfs_remove_group(&dev->kobj, &blk_trace_attr_group); in blk_trace_remove_sysfs()
/kernel/cgroup/
Dcgroup.c6466 static ssize_t delegate_show(struct kobject *kobj, struct kobj_attribute *attr, in delegate_show() argument
6485 static ssize_t features_show(struct kobject *kobj, struct kobj_attribute *attr, in features_show() argument
/kernel/events/
Dcore.c10030 ret = sysfs_update_groups(&pmu->dev->kobj, pmu->attr_update); in pmu_dev_alloc()