Lines Matching +full:attr +full:- +full:cnt +full:- +full:name

1 // SPDX-License-Identifier: GPL-2.0-only
3 * kernel/ksysfs.c - sysfs attributes in /sys/kernel, which
40 struct kobj_attribute *attr, char *buf) in uevent_seqnum_show() argument
48 struct kobj_attribute *attr, char *buf) in cpu_byteorder_show() argument
56 struct kobj_attribute *attr, char *buf) in address_bits_show() argument
65 struct kobj_attribute *attr, char *buf) in uevent_helper_show() argument
70 struct kobj_attribute *attr, in uevent_helper_store() argument
74 return -ENOENT; in uevent_helper_store()
77 if (count && uevent_helper[count-1] == '\n') in uevent_helper_store()
78 uevent_helper[count-1] = '\0'; in uevent_helper_store()
86 struct kobj_attribute *attr, char *buf) in profiling_show() argument
91 struct kobj_attribute *attr, in profiling_store() argument
97 return -EEXIST; in profiling_store()
117 struct kobj_attribute *attr, char *buf) in kexec_loaded_show() argument
124 struct kobj_attribute *attr, char *buf) in kexec_crash_loaded_show() argument
131 struct kobj_attribute *attr, char *buf) in kexec_crash_size_show() argument
141 struct kobj_attribute *attr, in kexec_crash_size_store() argument
144 unsigned long cnt; in kexec_crash_size_store() local
147 if (kstrtoul(buf, 0, &cnt)) in kexec_crash_size_store()
148 return -EINVAL; in kexec_crash_size_store()
150 ret = crash_shrink_memory(cnt); in kexec_crash_size_store()
160 struct kobj_attribute *attr, char *buf) in vmcoreinfo_show() argument
170 struct kobj_attribute *attr, char *buf) in crash_elfcorehdr_size_show() argument
184 struct kobj_attribute *attr, char *buf) in fscaps_show() argument
193 struct kobj_attribute *attr, char *buf) in rcu_expedited_show() argument
198 struct kobj_attribute *attr, in rcu_expedited_store() argument
202 return -EINVAL; in rcu_expedited_store()
210 struct kobj_attribute *attr, char *buf) in rcu_normal_show() argument
215 struct kobj_attribute *attr, in rcu_normal_store() argument
219 return -EINVAL; in rcu_normal_store()
231 #define notes_size (&__stop_notes - &__start_notes)
242 .attr = {
243 .name = "notes",
253 &fscaps_attr.attr,
254 &uevent_seqnum_attr.attr,
255 &cpu_byteorder_attr.attr,
256 &address_bits_attr.attr,
258 &uevent_helper_attr.attr,
261 &profiling_attr.attr,
264 &kexec_loaded_attr.attr,
265 &kexec_crash_loaded_attr.attr,
266 &kexec_crash_size_attr.attr,
269 &vmcoreinfo_attr.attr,
271 &crash_elfcorehdr_size_attr.attr,
275 &rcu_expedited_attr.attr,
276 &rcu_normal_attr.attr,
291 error = -ENOMEM; in ksysfs_init()