arch/arm64/kernel/cpuinfo.c
338
static struct kobj_attribute cpuregs_attr_##_name = __ATTR_RO(_name)
arch/powerpc/kernel/fadump.c
1546
static struct kobj_attribute enable_attr = __ATTR_RO(enabled);
arch/powerpc/kernel/fadump.c
1548
static struct kobj_attribute mem_reserved_attr = __ATTR_RO(mem_reserved);
arch/powerpc/kernel/fadump.c
1549
static struct kobj_attribute hotplug_ready_attr = __ATTR_RO(hotplug_ready);
arch/powerpc/kernel/secvar-sysfs.c
104
static struct kobj_attribute format_attr = __ATTR_RO(format);
arch/powerpc/kernel/secvar-sysfs.c
106
static struct kobj_attribute size_attr = __ATTR_RO(size);
arch/powerpc/perf/hv-gpci.c
91
static struct device_attribute hv_caps_attr_##_name = __ATTR_RO(_name)
arch/powerpc/platforms/pseries/plpks-sysfs.c
24
static struct kobj_attribute attr_##name = __ATTR_RO(name)
arch/s390/kernel/cert_store.c
741
static struct kobj_attribute cs_status_attr = __ATTR_RO(cs_status);
arch/s390/kernel/ipl.c
1752
static struct kobj_attribute dump_area_size_attr = __ATTR_RO(dump_area_size);
arch/s390/kernel/ipl.c
398
static struct kobj_attribute sys_ipl_type_attr = __ATTR_RO(ipl_type);
arch/s390/pci/pci_sysfs.c
44
static struct kobj_attribute _name##_attr = __ATTR_RO(_name)
arch/x86/coco/sev/core.c
1434
static struct kobj_attribute vmpl_attr = __ATTR_RO(vmpl);
arch/x86/events/perf_event.h
1160
.attr = __ATTR_RO(_name), \
arch/x86/kernel/ksysfs.c
246
static struct kobj_attribute type_attr = __ATTR_RO(type);
arch/x86/kernel/ksysfs.c
28
static struct kobj_attribute boot_params_version_attr = __ATTR_RO(version);
arch/x86/platform/efi/efi.c
903
struct kobj_attribute efi_attr_fw_vendor = __ATTR_RO(fw_vendor);
arch/x86/platform/efi/efi.c
904
struct kobj_attribute efi_attr_runtime = __ATTR_RO(runtime);
arch/x86/platform/efi/efi.c
905
struct kobj_attribute efi_attr_config_table = __ATTR_RO(config_table);
block/blk-crypto-sysfs.c
61
static const struct blk_crypto_attr _name##_attr = __ATTR_RO(_name)
drivers/accessibility/speakup/kobjects.c
875
__ATTR_RO(version);
drivers/acpi/acpi_fpdt.c
105
__ATTR_RO(resume_count);
drivers/acpi/acpi_mrrm.c
134
static struct kobj_attribute name##_attr = __ATTR_RO(name)
drivers/acpi/bgrt.c
24
static struct kobj_attribute bgrt_attr_##_name = __ATTR_RO(_name)
drivers/acpi/platform_profile.c
444
static struct kobj_attribute attr_platform_profile_choices = __ATTR_RO(platform_profile_choices);
drivers/acpi/sysfs.c
943
static const struct kobj_attribute pm_profile_attr = __ATTR_RO(pm_profile);
drivers/block/rnbd/rnbd-clt-sysfs.c
248
static struct kobj_attribute rnbd_clt_state_attr = __ATTR_RO(state);
drivers/block/rnbd/rnbd-clt-sysfs.c
261
__ATTR_RO(nr_poll_queues);
drivers/block/rnbd/rnbd-clt-sysfs.c
274
__ATTR_RO(mapping_path);
drivers/block/rnbd/rnbd-clt-sysfs.c
287
__ATTR_RO(access_mode);
drivers/block/rnbd/rnbd-clt-sysfs.c
444
__ATTR_RO(session);
drivers/block/rnbd/rnbd-srv-sysfs.c
111
__ATTR_RO(access_mode);
drivers/block/rnbd/rnbd-srv-sysfs.c
124
__ATTR_RO(mapping_path);
drivers/block/rnbd/rnbd-srv-sysfs.c
96
__ATTR_RO(read_only);
drivers/cpufreq/cpufreq_governor.h
73
static struct governor_attr _name = __ATTR_RO(_name)
drivers/cpufreq/freq_table.c
263
__ATTR_RO(_name##_frequencies)
drivers/cpufreq/powernv-cpufreq.c
389
__ATTR_RO(cpuinfo_nominal_freq);
drivers/cpufreq/powernv-cpufreq.c
404
static struct freq_attr throttle_attr_##name = __ATTR_RO(name) \
drivers/dma/ioat/sysfs.c
123
static const struct ioat_sysfs_entry ring_size_attr = __ATTR_RO(ring_size);
drivers/dma/ioat/sysfs.c
132
static const struct ioat_sysfs_entry ring_active_attr = __ATTR_RO(ring_active);
drivers/dma/ioat/sysfs.c
35
static const struct ioat_sysfs_entry ioat_cap_attr = __ATTR_RO(cap);
drivers/dma/ioat/sysfs.c
45
static const struct ioat_sysfs_entry ioat_version_attr = __ATTR_RO(version);
drivers/edac/ecs.c
135
((struct edac_ecs_dev_attr) { .dev_attr = __ATTR_RO(_name), \
drivers/edac/mem_repair.c
290
[MR_TYPE] = __ATTR_RO(repair_type),
drivers/edac/mem_repair.c
292
[MR_SAFE_IN_USE] = __ATTR_RO(repair_safe_when_in_use),
drivers/edac/mem_repair.c
294
[MR_MIN_HPA] = __ATTR_RO(min_hpa),
drivers/edac/mem_repair.c
295
[MR_MAX_HPA] = __ATTR_RO(max_hpa),
drivers/edac/mem_repair.c
297
[MR_MIN_DPA] = __ATTR_RO(min_dpa),
drivers/edac/mem_repair.c
298
[MR_MAX_DPA] = __ATTR_RO(max_dpa),
drivers/edac/scrub.c
146
((struct edac_scrub_dev_attr) { .dev_attr = __ATTR_RO(_name), \
drivers/firewire/core-device.c
453
__ATTR_RO(modalias),
drivers/firewire/core-device.c
454
__ATTR_RO(rom_index),
drivers/firewire/core-device.c
537
__ATTR_RO(config_rom),
drivers/firewire/core-device.c
538
__ATTR_RO(guid),
drivers/firewire/core-device.c
539
__ATTR_RO(is_local),
drivers/firewire/core-device.c
540
__ATTR_RO(units),
drivers/firmware/efi/efi.c
170
__ATTR_RO(fw_platform_size);
drivers/firmware/memmap.c
59
static struct memmap_attribute memmap_start_attr = __ATTR_RO(start);
drivers/firmware/memmap.c
60
static struct memmap_attribute memmap_end_attr = __ATTR_RO(end);
drivers/firmware/memmap.c
61
static struct memmap_attribute memmap_type_attr = __ATTR_RO(type);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
1062
__ATTR_RO(num_ips);
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
976
__ATTR_RO(hw_id),
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
977
__ATTR_RO(num_instance),
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
978
__ATTR_RO(major),
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
979
__ATTR_RO(minor),
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
980
__ATTR_RO(revision),
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
981
__ATTR_RO(harvest),
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
982
__ATTR_RO(num_base_addresses),
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
983
__ATTR_RO(base_addr),
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c
1023
static struct kobj_attribute xcp_sysfs_metrics = __ATTR_RO(xcp_metrics);
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c
891
__ATTR_RO(supported_xcp_configs);
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c
894
__ATTR_RO(supported_nps_configs);
drivers/gpu/drm/i915/gt/intel_gt_sysfs.c
62
static struct kobj_attribute attr_id = __ATTR_RO(id);
drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c
156
static struct kobj_attribute attr_##_name = __ATTR_RO(_name)
drivers/gpu/drm/xe/xe_gt_freq.c
105
static struct kobj_attribute attr_rp0_freq = __ATTR_RO(rp0_freq);
drivers/gpu/drm/xe/xe_gt_freq.c
119
static struct kobj_attribute attr_rpe_freq = __ATTR_RO(rpe_freq);
drivers/gpu/drm/xe/xe_gt_freq.c
133
static struct kobj_attribute attr_rpa_freq = __ATTR_RO(rpa_freq);
drivers/gpu/drm/xe/xe_gt_freq.c
143
static struct kobj_attribute attr_rpn_freq = __ATTR_RO(rpn_freq);
drivers/gpu/drm/xe/xe_gt_freq.c
78
static struct kobj_attribute attr_act_freq = __ATTR_RO(act_freq);
drivers/gpu/drm/xe/xe_gt_freq.c
95
static struct kobj_attribute attr_cur_freq = __ATTR_RO(cur_freq);
drivers/gpu/drm/xe/xe_gt_idle.c
297
static struct kobj_attribute name_attr = __ATTR_RO(name);
drivers/gpu/drm/xe/xe_gt_idle.c
312
static struct kobj_attribute idle_status_attr = __ATTR_RO(idle_status);
drivers/gpu/drm/xe/xe_gt_idle.c
341
static struct kobj_attribute idle_residency_attr = __ATTR_RO(idle_residency_ms);
drivers/hv/vmbus_drv.c
1622
struct vmbus_chan_attribute chan_attr_##_name = __ATTR_RO(_name)
drivers/iio/industrialio-buffer.c
1476
static struct device_attribute dev_attr_length_ro = __ATTR_RO(length);
drivers/iio/industrialio-buffer.c
1479
static struct device_attribute dev_attr_watermark_ro = __ATTR_RO(watermark);
drivers/infiniband/hw/usnic/usnic_ib_sysfs.c
202
struct qpn_attribute qpn_attr_##NAME = __ATTR_RO(NAME)
drivers/md/md-llbitmap.c
1633
static struct md_sysfs_entry llbitmap_bits = __ATTR_RO(bits);
drivers/md/md-llbitmap.c
1656
static struct md_sysfs_entry llbitmap_metadata = __ATTR_RO(metadata);
drivers/md/md.c
5363
static struct md_sysfs_entry md_last_scan_mode = __ATTR_RO(last_sync_action);
drivers/md/md.c
5373
static struct md_sysfs_entry md_mismatches = __ATTR_RO(mismatch_cnt);
drivers/md/md.c
5467
static struct md_sysfs_entry md_degraded = __ATTR_RO(degraded);
drivers/md/md.c
5512
static struct md_sysfs_entry md_sync_speed = __ATTR_RO(sync_speed);
drivers/md/raid5.c
7221
raid5_stripecache_active = __ATTR_RO(stripe_cache_active);
drivers/media/pci/ddbridge/ddbridge-core.c
3058
__ATTR_RO(version),
drivers/media/pci/ddbridge/ddbridge-core.c
3059
__ATTR_RO(ports),
drivers/media/pci/ddbridge/ddbridge-core.c
3060
__ATTR_RO(ts_irq),
drivers/media/pci/ddbridge/ddbridge-core.c
3061
__ATTR_RO(i2c_irq),
drivers/media/pci/ddbridge/ddbridge-core.c
3074
__ATTR_RO(hwid),
drivers/media/pci/ddbridge/ddbridge-core.c
3075
__ATTR_RO(regmap),
drivers/media/pci/ddbridge/ddbridge-core.c
3078
__ATTR_RO(bpsnr),
drivers/media/pci/ddbridge/ddbridge-core.c
3083
__ATTR_RO(temp),
drivers/media/pci/solo6x10/solo6x10-core.c
388
__ATTR_RO(p2m_timeouts),
drivers/media/pci/solo6x10/solo6x10-core.c
389
__ATTR_RO(sdram_size),
drivers/media/pci/solo6x10/solo6x10-core.c
390
__ATTR_RO(tw28xx),
drivers/media/pci/solo6x10/solo6x10-core.c
391
__ATTR_RO(input_map),
drivers/media/pci/solo6x10/solo6x10-core.c
392
__ATTR_RO(intervals),
drivers/media/pci/solo6x10/solo6x10-core.c
393
__ATTR_RO(sdram_offsets),
drivers/misc/ocxl/sysfs.c
89
__ATTR_RO(global_mmio_size),
drivers/misc/ocxl/sysfs.c
90
__ATTR_RO(pp_mmio_size),
drivers/misc/ocxl/sysfs.c
91
__ATTR_RO(afu_version),
drivers/misc/ocxl/sysfs.c
92
__ATTR_RO(contexts),
drivers/net/bonding/bond_sysfs_slave.c
19
const struct slave_attribute slave_attr_##_name = __ATTR_RO(_name)
drivers/net/virtio_net.c
6589
__ATTR_RO(mergeable_rx_buffer_size);
drivers/platform/x86/asus-armoury.c
126
static struct kobj_attribute pending_reboot = __ATTR_RO(pending_reboot);
drivers/platform/x86/dell/dell-wmi-sysman/enum-attributes.c
104
__ATTR_RO(dell_modifier);
drivers/platform/x86/dell/dell-wmi-sysman/enum-attributes.c
108
__ATTR_RO(dell_value_modifier);
drivers/platform/x86/dell/dell-wmi-sysman/enum-attributes.c
112
__ATTR_RO(possible_values);
drivers/platform/x86/dell/dell-wmi-sysman/enum-attributes.c
120
__ATTR_RO(type);
drivers/platform/x86/dell/dell-wmi-sysman/enum-attributes.c
88
__ATTR_RO(display_name_language_code);
drivers/platform/x86/dell/dell-wmi-sysman/enum-attributes.c
92
__ATTR_RO(display_name);
drivers/platform/x86/dell/dell-wmi-sysman/enum-attributes.c
96
__ATTR_RO(default_value);
drivers/platform/x86/dell/dell-wmi-sysman/int-attributes.c
102
__ATTR_RO(type);
drivers/platform/x86/dell/dell-wmi-sysman/int-attributes.c
66
__ATTR_RO(display_name_language_code);
drivers/platform/x86/dell/dell-wmi-sysman/int-attributes.c
70
__ATTR_RO(display_name);
drivers/platform/x86/dell/dell-wmi-sysman/int-attributes.c
74
__ATTR_RO(default_value);
drivers/platform/x86/dell/dell-wmi-sysman/int-attributes.c
82
__ATTR_RO(dell_modifier);
drivers/platform/x86/dell/dell-wmi-sysman/int-attributes.c
86
__ATTR_RO(min_value);
drivers/platform/x86/dell/dell-wmi-sysman/int-attributes.c
90
__ATTR_RO(max_value);
drivers/platform/x86/dell/dell-wmi-sysman/int-attributes.c
94
__ATTR_RO(scalar_increment);
drivers/platform/x86/dell/dell-wmi-sysman/passobj-attributes.c
101
static struct kobj_attribute po_min_pass_length = __ATTR_RO(min_password_length);
drivers/platform/x86/dell/dell-wmi-sysman/passobj-attributes.c
104
static struct kobj_attribute po_max_pass_length = __ATTR_RO(max_password_length);
drivers/platform/x86/dell/dell-wmi-sysman/passobj-attributes.c
112
static struct kobj_attribute po_mechanism = __ATTR_RO(mechanism);
drivers/platform/x86/dell/dell-wmi-sysman/passobj-attributes.c
124
static struct kobj_attribute po_role = __ATTR_RO(role);
drivers/platform/x86/dell/dell-wmi-sysman/passobj-attributes.c
39
static struct kobj_attribute po_is_pass_set = __ATTR_RO(is_enabled);
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
56
__ATTR_RO(display_name_language_code);
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
60
__ATTR_RO(display_name);
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
64
__ATTR_RO(default_value);
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
72
__ATTR_RO(dell_modifier);
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
76
__ATTR_RO(min_length);
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
80
__ATTR_RO(max_length);
drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c
88
__ATTR_RO(type);
drivers/platform/x86/dell/dell-wmi-sysman/sysman.c
200
static struct kobj_attribute pending_reboot = __ATTR_RO(pending_reboot);
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
347
static struct kobj_attribute pending_reboot = __ATTR_RO(pending_reboot);
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
37
__ATTR_RO(display_name_language_code);
drivers/platform/x86/hp/hp-bioscfg/enum-attributes.c
60
__ATTR_RO(display_name);
drivers/platform/x86/hp/hp-bioscfg/enum-attributes.c
68
__ATTR_RO(possible_values);
drivers/platform/x86/hp/hp-bioscfg/enum-attributes.c
77
__ATTR_RO(type);
drivers/platform/x86/hp/hp-bioscfg/int-attributes.c
67
__ATTR_RO(display_name);
drivers/platform/x86/hp/hp-bioscfg/int-attributes.c
75
__ATTR_RO(lower_bound);
drivers/platform/x86/hp/hp-bioscfg/int-attributes.c
79
__ATTR_RO(upper_bound);
drivers/platform/x86/hp/hp-bioscfg/int-attributes.c
83
__ATTR_RO(scalar_increment);
drivers/platform/x86/hp/hp-bioscfg/int-attributes.c
92
__ATTR_RO(type);
drivers/platform/x86/hp/hp-bioscfg/order-list-attributes.c
65
__ATTR_RO(display_name);
drivers/platform/x86/hp/hp-bioscfg/order-list-attributes.c
73
__ATTR_RO(elements);
drivers/platform/x86/hp/hp-bioscfg/order-list-attributes.c
82
__ATTR_RO(type);
drivers/platform/x86/hp/hp-bioscfg/passwdobj-attributes.c
132
static struct kobj_attribute password_min_password_length = __ATTR_RO(min_password_length);
drivers/platform/x86/hp/hp-bioscfg/passwdobj-attributes.c
135
static struct kobj_attribute password_max_password_length = __ATTR_RO(max_password_length);
drivers/platform/x86/hp/hp-bioscfg/passwdobj-attributes.c
148
static struct kobj_attribute password_role = __ATTR_RO(role);
drivers/platform/x86/hp/hp-bioscfg/passwdobj-attributes.c
164
static struct kobj_attribute password_mechanism = __ATTR_RO(mechanism);
drivers/platform/x86/hp/hp-bioscfg/passwdobj-attributes.c
167
static struct kobj_attribute password_encodings_val = __ATTR_RO(encodings);
drivers/platform/x86/hp/hp-bioscfg/passwdobj-attributes.c
82
static struct kobj_attribute password_is_password_set = __ATTR_RO(is_enabled);
drivers/platform/x86/hp/hp-bioscfg/spmobj-attributes.c
207
static struct kobj_attribute password_spm_status = __ATTR_RO(status);
drivers/platform/x86/hp/hp-bioscfg/spmobj-attributes.c
210
static struct kobj_attribute password_spm_is_key_enabled = __ATTR_RO(is_enabled);
drivers/platform/x86/hp/hp-bioscfg/spmobj-attributes.c
219
static struct kobj_attribute password_spm_key_mechanism = __ATTR_RO(key_mechanism);
drivers/platform/x86/hp/hp-bioscfg/spmobj-attributes.c
299
static struct kobj_attribute password_spm_role = __ATTR_RO(role);
drivers/platform/x86/hp/hp-bioscfg/string-attributes.c
64
__ATTR_RO(display_name);
drivers/platform/x86/hp/hp-bioscfg/string-attributes.c
72
__ATTR_RO(min_length);
drivers/platform/x86/hp/hp-bioscfg/string-attributes.c
76
__ATTR_RO(max_length);
drivers/platform/x86/hp/hp-bioscfg/string-attributes.c
85
__ATTR_RO(type);
drivers/platform/x86/hp/hp-bioscfg/surestart-attributes.c
109
static struct kobj_attribute sure_start_audit_log_entry_count = __ATTR_RO(audit_log_entry_count);
drivers/platform/x86/hp/hp-bioscfg/surestart-attributes.c
110
static struct kobj_attribute sure_start_audit_log_entries = __ATTR_RO(audit_log_entries);
drivers/platform/x86/intel/pmt/discovery.c
178
static struct kobj_attribute caps_attribute = __ATTR_RO(caps);
drivers/platform/x86/intel/pmt/discovery.c
213
static struct kobj_attribute num_rmids_attribute = __ATTR_RO(num_rmids);
drivers/platform/x86/intel/pmt/discovery.c
227
__ATTR_RO(min_watcher_period_ms);
drivers/platform/x86/intel/pmt/discovery.c
241
__ATTR_RO(max_stream_size);
drivers/platform/x86/intel/pmt/discovery.c
255
__ATTR_RO(max_command_size);
drivers/platform/x86/intel/pmt/discovery.c
269
static struct kobj_attribute guids_attribute = __ATTR_RO(guids);
drivers/platform/x86/lenovo/think-lmi.c
1215
static struct kobj_attribute attr_displ_name = __ATTR_RO(display_name);
drivers/platform/x86/lenovo/think-lmi.c
1217
static struct kobj_attribute attr_possible_values = __ATTR_RO(possible_values);
drivers/platform/x86/lenovo/think-lmi.c
1221
static struct kobj_attribute attr_type = __ATTR_RO(type);
drivers/platform/x86/lenovo/think-lmi.c
1282
static struct kobj_attribute pending_reboot = __ATTR_RO(pending_reboot);
drivers/platform/x86/lenovo/think-lmi.c
432
static struct kobj_attribute auth_is_pass_set = __ATTR_RO(is_enabled);
drivers/platform/x86/lenovo/think-lmi.c
553
static struct kobj_attribute auth_min_pass_length = __ATTR_RO(min_password_length);
drivers/platform/x86/lenovo/think-lmi.c
562
static struct kobj_attribute auth_max_pass_length = __ATTR_RO(max_password_length);
drivers/platform/x86/lenovo/think-lmi.c
573
static struct kobj_attribute auth_mechanism = __ATTR_RO(mechanism);
drivers/platform/x86/lenovo/think-lmi.c
635
static struct kobj_attribute auth_role = __ATTR_RO(role);
drivers/platform/x86/lenovo/think-lmi.c
766
static struct kobj_attribute auth_cert_thumb = __ATTR_RO(certificate_thumbprint);
drivers/platform/x86/samsung-galaxybook.c
922
static struct kobj_attribute fw_attr_type = __ATTR_RO(type);
drivers/platform/x86/samsung-galaxybook.c
929
static struct kobj_attribute fw_attr_default_value = __ATTR_RO(default_value);
drivers/platform/x86/samsung-galaxybook.c
936
static struct kobj_attribute fw_attr_possible_values = __ATTR_RO(possible_values);
drivers/platform/x86/samsung-galaxybook.c
945
__ATTR_RO(display_name_language_code);
drivers/ptp/ptp_ocp.c
3456
{ __ATTR_RO(_name), (void *)_val }
drivers/soc/hisilicon/kunpeng_hccs.c
1008
static struct kobj_attribute lane_mask_attr = __ATTR_RO(lane_mask);
drivers/soc/hisilicon/kunpeng_hccs.c
1026
static struct kobj_attribute crc_err_cnt_attr = __ATTR_RO(crc_err_cnt);
drivers/soc/hisilicon/kunpeng_hccs.c
918
static struct kobj_attribute hccs_type_attr = __ATTR_RO(type);
drivers/soc/hisilicon/kunpeng_hccs.c
927
static struct kobj_attribute lane_mode_attr = __ATTR_RO(lane_mode);
drivers/soc/hisilicon/kunpeng_hccs.c
936
static struct kobj_attribute port_enable_attr = __ATTR_RO(enable);
drivers/soc/hisilicon/kunpeng_hccs.c
954
static struct kobj_attribute cur_lane_num_attr = __ATTR_RO(cur_lane_num);
drivers/soc/hisilicon/kunpeng_hccs.c
990
static struct kobj_attribute link_fsm_attr = __ATTR_RO(link_fsm);
drivers/vfio/mdev/mdev_sysfs.c
27
struct mdev_type_attribute mdev_type_attr_##_name = __ATTR_RO(_name)
drivers/video/fbdev/udlfb.c
1522
__ATTR_RO(metrics_bytes_rendered),
drivers/video/fbdev/udlfb.c
1523
__ATTR_RO(metrics_bytes_identical),
drivers/video/fbdev/udlfb.c
1524
__ATTR_RO(metrics_bytes_sent),
drivers/video/fbdev/udlfb.c
1525
__ATTR_RO(metrics_cpu_kcycles_used),
drivers/xen/sys-hypervisor.c
25
static struct hyp_sysfs_attr _name##_attr = __ATTR_RO(_name)
fs/9p/v9fs.c
641
static struct kobj_attribute v9fs_attr_cache = __ATTR_RO(caches);
fs/ecryptfs/main.c
768
static struct kobj_attribute version_attr = __ATTR_RO(version);
fs/fuse/virtio_fs.c
184
static struct kobj_attribute virtio_fs_tag_attr = __ATTR_RO(tag);
fs/fuse/virtio_fs.c
230
static struct kobj_attribute virtio_fs_vq_name_attr = __ATTR_RO(name);
fs/fuse/virtio_fs.c
263
static struct kobj_attribute virtio_fs_vq_cpu_list_attr = __ATTR_RO(cpu_list);
fs/nfs/sysfs.c
312
static struct kobj_attribute nfs_sysfs_attr_implid_domain = __ATTR_RO(implid_domain);
fs/nfs/sysfs.c
327
static struct kobj_attribute nfs_sysfs_attr_implid_name = __ATTR_RO(implid_name);
fs/nfs/sysfs.c
406
static struct kobj_attribute nfs_sysfs_attr_localio = __ATTR_RO(localio);
fs/xfs/xfs_sysfs.c
36
static struct xfs_sysfs_attr xfs_sysfs_attr_##name = __ATTR_RO(name)
fs/zonefs/sysfs.c
19
static struct zonefs_sysfs_attr zonefs_sysfs_attr_##name = __ATTR_RO(name)
include/linux/device/bus.h
131
struct bus_attribute bus_attr_##_name = __ATTR_RO(_name)
include/linux/device/class.h
178
struct class_attribute class_attr_##_name = __ATTR_RO(_name)
include/linux/device/driver.h
156
struct driver_attribute driver_attr_##_name = __ATTR_RO(_name)
include/linux/iio/sysfs.h
59
{ .dev_attr = __ATTR_RO(_name), \
include/linux/perf_event.h
2096
static struct device_attribute format_attr_##_name = __ATTR_RO(_name)
include/rdma/ib_sysfs.h
29
struct ib_port_attribute ib_port_attr_##_name = __ATTR_RO(_name)
kernel/cgroup/cgroup.c
7491
static struct kobj_attribute cgroup_delegate_attr = __ATTR_RO(delegate);
kernel/cgroup/cgroup.c
7504
static struct kobj_attribute cgroup_features_attr = __ATTR_RO(features);
kernel/exit.c
117
static struct kobj_attribute oops_count_attr = __ATTR_RO(oops_count);
kernel/irq/irqdesc.c
245
static struct kobj_attribute _name##_attr = __ATTR_RO(_name)
kernel/kexec_core.c
1244
static struct kobj_attribute loaded_attr = __ATTR_RO(loaded);
kernel/kexec_core.c
1252
static struct kobj_attribute crash_loaded_attr = __ATTR_RO(crash_loaded);
kernel/kexec_core.c
1269
static struct kobj_attribute crash_cma_ranges_attr = __ATTR_RO(crash_cma_ranges);
kernel/kexec_core.c
1305
static struct kobj_attribute crash_elfcorehdr_size_attr = __ATTR_RO(crash_elfcorehdr_size);
kernel/ksysfs.c
34
static struct kobj_attribute _name##_attr = __ATTR_RO(_name)
kernel/livepatch/core.c
482
static struct kobj_attribute transition_kobj_attr = __ATTR_RO(transition);
kernel/livepatch/core.c
484
static struct kobj_attribute replace_kobj_attr = __ATTR_RO(replace);
kernel/livepatch/core.c
485
static struct kobj_attribute stack_order_kobj_attr = __ATTR_RO(stack_order);
kernel/livepatch/core.c
505
static struct kobj_attribute patched_kobj_attr = __ATTR_RO(patched);
kernel/module/decompress.c
356
static struct kobj_attribute module_compression_attr = __ATTR_RO(compression);
kernel/panic.c
243
static struct kobj_attribute warn_count_attr = __ATTR_RO(warn_count);
kernel/power/main.c
473
static struct kobj_attribute _name = __ATTR_RO(_name)
kernel/power/main.c
488
static struct kobj_attribute _name = __ATTR_RO(_name)
kernel/power/main.c
511
static struct kobj_attribute last_failed_dev = __ATTR_RO(last_failed_dev);
kernel/power/main.c
525
static struct kobj_attribute last_failed_errno = __ATTR_RO(last_failed_errno);
kernel/power/main.c
539
static struct kobj_attribute last_failed_step = __ATTR_RO(last_failed_step);
kernel/rcu/tree_stall.h
62
static struct kobj_attribute rcu_stall_count_attr = __ATTR_RO(rcu_stall_count);
kernel/watchdog.c
403
static struct kobj_attribute softlockup_count_attr = __ATTR_RO(softlockup_count);
kernel/watchdog.c
93
static struct kobj_attribute hardlockup_count_attr = __ATTR_RO(hardlockup_count);
mm/cma_sysfs.c
15
static struct kobj_attribute _name##_attr = __ATTR_RO(_name)
mm/huge_memory.c
528
__ATTR_RO(hpage_pmd_size);
mm/huge_memory.c
700
static struct kobj_attribute _name##_attr = __ATTR_RO(_name)
mm/hugetlb_sysfs.c
15
static struct kobj_attribute _name##_attr = __ATTR_RO(_name)
mm/khugepaged.c
219
__ATTR_RO(pages_collapsed);
mm/khugepaged.c
228
__ATTR_RO(full_scans);
mm/ksm.c
3455
static struct kobj_attribute _name##_attr = __ATTR_RO(_name)
net/core/net-sysfs.c
1507
= __ATTR_RO(tx_timeout);
net/core/net-sysfs.c
1510
= __ATTR_RO(traffic_class);
sound/hda/core/sysfs.c
157
struct widget_attribute wid_attr_##_name = __ATTR_RO(_name)
tools/testing/selftests/livepatch/test_modules/test_klp_syscall.c
51
static struct kobj_attribute klp_attr = __ATTR_RO(npids);