/kernel/ |
D | ksysfs.c | 31 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 …]
|
D | params.c | 521 #define to_module_kobject(n) container_of(n, struct module_kobject, kobj) 710 err = sysfs_create_group(&mod->mkobj.kobj, &mod->mkobj.mp->grp); in module_param_sysfs_setup() 726 sysfs_remove_group(&mod->mkobj.kobj, &mod->mkobj.mp->grp); in module_param_sysfs_remove() 746 struct kobject *kobj; in locate_module_kobject() local 749 kobj = kset_find_obj(module_kset, name); in locate_module_kobject() 750 if (kobj) { in locate_module_kobject() 751 mk = to_module_kobject(kobj); in locate_module_kobject() 757 mk->kobj.kset = module_kset; in locate_module_kobject() 758 err = kobject_init_and_add(&mk->kobj, &module_ktype, NULL, in locate_module_kobject() 762 err = sysfs_create_file(&mk->kobj, &module_uevent.attr); in locate_module_kobject() [all …]
|
D | padata.c | 856 container_of(_kobj, struct padata_instance, kobj) 860 static void padata_sysfs_release(struct kobject *kobj) in padata_sysfs_release() argument 862 struct padata_instance *pinst = kobj2pinst(kobj); in padata_sysfs_release() 940 static ssize_t padata_sysfs_show(struct kobject *kobj, in padata_sysfs_show() argument 947 pinst = kobj2pinst(kobj); in padata_sysfs_show() 955 static ssize_t padata_sysfs_store(struct kobject *kobj, struct attribute *attr, in padata_sysfs_store() argument 962 pinst = kobj2pinst(kobj); in padata_sysfs_store() 1024 kobject_init(&pinst->kobj, &padata_attr_type); in padata_alloc() 1060 kobject_put(&pinst->kobj); in padata_free()
|
D | module.c | 1237 rc = kobject_synth_uevent(&mk->kobj, buffer, count); in store_uevent() 1562 static ssize_t module_sect_read(struct file *file, struct kobject *kobj, in module_sect_read() argument 1643 if (sysfs_create_group(&mod->mkobj.kobj, §_attrs->grp)) in add_sect_attrs() 1655 sysfs_remove_group(&mod->mkobj.kobj, in remove_sect_attrs() 1674 static ssize_t module_notes_read(struct file *filp, struct kobject *kobj, in module_notes_read() argument 1739 notes_attrs->dir = kobject_create_and_add("notes", &mod->mkobj.kobj); in add_notes_attrs() 1803 &mod->mkobj.kobj, mod->name); in add_usage_links() 1834 error = sysfs_create_file(&mod->mkobj.kobj, in module_add_modinfo_attrs() 1863 sysfs_remove_file(&mod->mkobj.kobj, &attr->attr); in module_remove_modinfo_attrs() 1874 kobject_put(&mod->mkobj.kobj); in mod_kobject_put() [all …]
|
D | kheaders.c | 33 ikheaders_read(struct file *file, struct kobject *kobj, in ikheaders_read() argument
|
D | cpu.c | 1792 kobject_uevent(&cpu_device->kobj, KOBJ_ONLINE); in thaw_secondary_cpus() 2432 kobject_uevent(&dev->kobj, KOBJ_OFFLINE); in cpuhp_offline_cpu_device() 2441 kobject_uevent(&dev->kobj, KOBJ_ONLINE); in cpuhp_online_cpu_device() 2748 return sysfs_create_group(&cpu_subsys.dev_root->kobj, in cpu_smt_sysfs_init() 2760 ret = sysfs_create_group(&cpu_subsys.dev_root->kobj, in cpuhp_sysfs_init() 2770 ret = sysfs_create_group(&dev->kobj, &cpuhp_cpu_attr_group); in cpuhp_sysfs_init()
|
D | panic.c | 111 static ssize_t warn_count_show(struct kobject *kobj, struct kobj_attribute *attr, in warn_count_show() argument
|
D | exit.c | 105 static ssize_t oops_count_show(struct kobject *kobj, struct kobj_attribute *attr, in oops_count_show() argument
|
D | workqueue.c | 5754 kobject_uevent(&wq_dev->dev.kobj, KOBJ_ADD); in workqueue_sysfs_register()
|
/kernel/power/ |
D | main.c | 100 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 …]
|
D | wakeup_reason.c | 60 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()
|
D | hibernate.c | 1059 static ssize_t disk_show(struct kobject *kobj, struct kobj_attribute *attr, in disk_show() argument 1094 static ssize_t disk_store(struct kobject *kobj, struct kobj_attribute *attr, in disk_store() argument 1145 static ssize_t resume_show(struct kobject *kobj, struct kobj_attribute *attr, in resume_show() argument 1152 static ssize_t resume_store(struct kobject *kobj, struct kobj_attribute *attr, in resume_store() argument 1182 static ssize_t resume_offset_show(struct kobject *kobj, in resume_offset_show() argument 1188 static ssize_t resume_offset_store(struct kobject *kobj, in resume_offset_store() argument 1205 static ssize_t image_size_show(struct kobject *kobj, struct kobj_attribute *attr, in image_size_show() argument 1211 static ssize_t image_size_store(struct kobject *kobj, struct kobj_attribute *attr, in image_size_store() argument 1226 static ssize_t reserved_size_show(struct kobject *kobj, in reserved_size_show() argument 1232 static ssize_t reserved_size_store(struct kobject *kobj, in reserved_size_store() argument
|
/kernel/livepatch/ |
D | core.c | 333 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() 553 static void klp_kobj_release_patch(struct kobject *kobj) in klp_kobj_release_patch() argument 557 patch = container_of(kobj, struct klp_patch, kobj); in klp_kobj_release_patch() [all …]
|
/kernel/irq/ |
D | irqdesc.c | 138 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/sched/ |
D | cpufreq_schedutil.c | 621 static void sugov_tunables_free(struct kobject *kobj) in sugov_tunables_free() argument 623 struct gov_attr_set *attr_set = container_of(kobj, struct gov_attr_set, kobj); in sugov_tunables_free() 784 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/bpf/ |
D | sysfs_btf.c | 16 btf_vmlinux_read(struct file *file, struct kobject *kobj, in btf_vmlinux_read() argument
|
/kernel/trace/ |
D | preemptirq_delay_test.c | 152 static ssize_t trigger_store(struct kobject *kobj, struct kobj_attribute *attr, in trigger_store() argument
|
D | blktrace.c | 1956 return sysfs_create_group(&dev->kobj, &blk_trace_attr_group); in blk_trace_init_sysfs() 1961 sysfs_remove_group(&dev->kobj, &blk_trace_attr_group); in blk_trace_remove_sysfs()
|
/kernel/cgroup/ |
D | cgroup.c | 6767 static ssize_t delegate_show(struct kobject *kobj, struct kobj_attribute *attr, in delegate_show() argument 6786 static ssize_t features_show(struct kobject *kobj, struct kobj_attribute *attr, in features_show() argument
|
/kernel/events/ |
D | core.c | 10792 static umode_t pmu_dev_is_visible(struct kobject *kobj, struct attribute *a, int n) in pmu_dev_is_visible() argument 10794 struct device *dev = kobj_to_dev(kobj); in pmu_dev_is_visible() 10848 ret = sysfs_update_groups(&pmu->dev->kobj, pmu->attr_update); in pmu_dev_alloc()
|