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
104 return -EEXIST; in profiling_store()
124 struct kobj_attribute *attr, char *buf) in kexec_loaded_show() argument
132 struct kobj_attribute *attr, char *buf) in kexec_crash_loaded_show() argument
139 struct kobj_attribute *attr, char *buf) in kexec_crash_size_show() argument
149 struct kobj_attribute *attr, in kexec_crash_size_store() argument
152 unsigned long cnt; in kexec_crash_size_store() local
155 if (kstrtoul(buf, 0, &cnt)) in kexec_crash_size_store()
156 return -EINVAL; in kexec_crash_size_store()
158 ret = crash_shrink_memory(cnt); in kexec_crash_size_store()
169 struct kobj_attribute *attr, char *buf) in vmcoreinfo_show() argument
179 struct kobj_attribute *attr, char *buf) in crash_elfcorehdr_size_show() argument
193 struct kobj_attribute *attr, char *buf) in fscaps_show() argument
202 struct kobj_attribute *attr, char *buf) in rcu_expedited_show() argument
207 struct kobj_attribute *attr, in rcu_expedited_store() argument
211 return -EINVAL; in rcu_expedited_store()
219 struct kobj_attribute *attr, char *buf) in rcu_normal_show() argument
224 struct kobj_attribute *attr, in rcu_normal_store() argument
228 return -EINVAL; in rcu_normal_store()
240 #define notes_size (&__stop_notes - &__start_notes)
251 .attr = {
252 .name = "notes",
262 &fscaps_attr.attr,
263 &uevent_seqnum_attr.attr,
264 &cpu_byteorder_attr.attr,
265 &address_bits_attr.attr,
267 &uevent_helper_attr.attr,
270 &profiling_attr.attr,
273 &kexec_loaded_attr.attr,
275 &kexec_crash_loaded_attr.attr,
276 &kexec_crash_size_attr.attr,
280 &vmcoreinfo_attr.attr,
282 &crash_elfcorehdr_size_attr.attr,
286 &rcu_expedited_attr.attr,
287 &rcu_normal_attr.attr,
302 error = -ENOMEM; in ksysfs_init()