/linux-3.4.99/include/linux/ |
D | sysfs.h | 26 struct attribute { struct 59 struct attribute *, int); 60 struct attribute **attrs; 89 struct attribute attr; 113 ssize_t (*show)(struct kobject *, struct attribute *,char *); 114 ssize_t (*store)(struct kobject *,struct attribute *,const char *, size_t); 115 const void *(*namespace)(struct kobject *, const struct attribute *); 132 const struct attribute *attr); 134 const struct attribute **attr); 136 const struct attribute *attr, umode_t mode); [all …]
|
/linux-3.4.99/samples/kobject/ |
D | kset-example.c | 41 struct attribute attr; 55 struct attribute *attr, in foo_attr_show() 58 struct foo_attribute *attribute; in foo_attr_show() local 61 attribute = to_foo_attr(attr); in foo_attr_show() 64 if (!attribute->show) in foo_attr_show() 67 return attribute->show(foo, attribute, buf); in foo_attr_show() 75 struct attribute *attr, in foo_attr_store() 78 struct foo_attribute *attribute; in foo_attr_store() local 81 attribute = to_foo_attr(attr); in foo_attr_store() 84 if (!attribute->store) in foo_attr_store() [all …]
|
/linux-3.4.99/Documentation/ABI/testing/ |
D | sysfs-devices-power | 13 The /sys/devices/.../power/wakeup attribute allows the user 39 The /sys/devices/.../power/control attribute allows the user 50 drivers. Changing this attribute to "on" prevents the driver 58 The /sys/devices/.../async attribute allows the user space to 70 The value of this attribute may be changed by writing either 76 devices this attribute is set to "enabled" by bus type code or 84 The /sys/devices/.../wakeup_count attribute contains the number 86 attribute is read-only. If the device is not enabled to wake up 87 the system from sleep states, this attribute is not present. 93 The /sys/devices/.../wakeup_active_count attribute contains the [all …]
|
D | sysfs-devices-mmc | 8 is enabled, this attribute will indicate the start address of 9 enhanced data area. If not, this attribute will be -EINVAL. 19 is enabled, this attribute will indicate the size of enhanced 20 data area. If not, this attribute will be -EINVAL.
|
D | sysfs-driver-hid-multitouch | 4 Description: The integer value of this attribute corresponds to the 6 When read, this attribute returns the current settings (see 8 When written this attribute change on the fly the quirks, then
|
D | sysfs-class-rtc-rtc0-device-rtc_calibration | 5 Description: The rtc_calibration attribute allows the userspace to 8 by adding to it the value of this attribute. 9 The range of the attribute is -127 to +127 in units of
|
D | sysfs-bus-css | 6 This attribute is present for all subchannel types. 23 Note: This is an I/O-subchannel specific attribute. 32 layer (this implies that this attribute is not necessarily 34 Note: This is an I/O-subchannel specific attribute.
|
D | sysfs-devices-soc | 19 Read-only attribute common to all SoCs. Contains the SoC machine 26 Read-only attribute common to all SoCs. Contains SoC family name 33 Read-only attribute supported by most SoCs. In the case of 40 Read-only attribute supported by most SoCs. Contains the SoC's 47 Read-only attribute supported ST-Ericsson's silicon. Contains the
|
/linux-3.4.99/sound/pci/asihpi/ |
D | hpicmn.c | 343 if (phm->u.c.attribute == HPI_METER_PEAK) { in hpi_check_control_cache() 346 } else if (phm->u.c.attribute == HPI_METER_RMS) { in hpi_check_control_cache() 363 if (phm->u.c.attribute == HPI_VOLUME_GAIN) { in hpi_check_control_cache() 366 } else if (phm->u.c.attribute == HPI_VOLUME_MUTE) { in hpi_check_control_cache() 383 if (phm->u.c.attribute == HPI_MULTIPLEXER_SOURCE) { in hpi_check_control_cache() 391 if (phm->u.c.attribute == HPI_CHANNEL_MODE_MODE) in hpi_check_control_cache() 397 if (phm->u.c.attribute == HPI_LEVEL_GAIN) { in hpi_check_control_cache() 404 if (phm->u.c.attribute == HPI_TUNER_FREQ) in hpi_check_control_cache() 406 else if (phm->u.c.attribute == HPI_TUNER_BAND) in hpi_check_control_cache() 408 else if (phm->u.c.attribute == HPI_TUNER_LEVEL_AVG) in hpi_check_control_cache() [all …]
|
/linux-3.4.99/drivers/pci/ |
D | pci-label.c | 60 enum smbios_attr_enum attribute) in find_smbios_instance_string() argument 77 if (attribute == SMBIOS_ATTR_INSTANCE_SHOW) in find_smbios_instance_string() 81 else if (attribute == SMBIOS_ATTR_LABEL_SHOW) in find_smbios_instance_string() 93 smbios_instance_string_exist(struct kobject *kobj, struct attribute *attr, in smbios_instance_string_exist() 137 static struct attribute *smbios_attributes[] = { 209 char *buf, enum acpi_attr_enum attribute) in dsm_get_label() argument 243 if (attribute == ACPI_ATTR_INDEX_SHOW) in dsm_get_label() 246 else if (attribute == ACPI_ATTR_LABEL_SHOW) in dsm_get_label() 279 acpi_index_string_exist(struct kobject *kobj, struct attribute *attr, int n) in acpi_index_string_exist() 344 static struct attribute *acpi_attributes[] = {
|
D | slot.c | 19 struct attribute *attr, char *buf) in pci_slot_attr_show() 22 struct pci_slot_attribute *attribute = to_pci_slot_attr(attr); in pci_slot_attr_show() local 23 return attribute->show ? attribute->show(slot, buf) : -EIO; in pci_slot_attr_show() 27 struct attribute *attr, const char *buf, size_t len) in pci_slot_attr_store() 30 struct pci_slot_attribute *attribute = to_pci_slot_attr(attr); in pci_slot_attr_store() local 31 return attribute->store ? attribute->store(slot, buf, len) : -EIO; in pci_slot_attr_store() 125 static struct attribute *pci_slot_default_attrs[] = {
|
/linux-3.4.99/kernel/ |
D | params.c | 531 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_show() local 533 if (!attribute->param->ops->get) in param_attr_show() 537 count = attribute->param->ops->get(buf, attribute->param); in param_attr_show() 552 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_store() local 554 if (!attribute->param->ops->set) in param_attr_store() 558 err = attribute->param->ops->set(buf, attribute->param); in param_attr_store() 600 struct attribute **attrs; in add_sysfs_param() 860 struct attribute *attr, in module_attr_show() 863 struct module_attribute *attribute; in module_attr_show() local 867 attribute = to_module_attr(attr); in module_attr_show() [all …]
|
/linux-3.4.99/drivers/edac/ |
D | edac_device_sysfs.c | 108 struct attribute attr; 118 struct attribute *attr, char *buffer) in edac_dev_ctl_info_show() 130 struct attribute *attr, in edac_dev_ctl_info_store() 220 .default_attrs = (struct attribute **)device_ctrl_attr, 350 struct attribute attr; 357 struct attribute *attr, char *buffer) in edac_dev_instance_show() 369 struct attribute *attr, in edac_dev_instance_store() 412 .default_attrs = (struct attribute **)device_instance_attr, 425 struct attribute *attr, char *data) in block_ue_count_show() 433 struct attribute *attr, char *data) in block_ce_count_show() [all …]
|
/linux-3.4.99/net/core/ |
D | net-sysfs.c | 389 static struct attribute *netstat_attrs[] = { 468 static struct attribute *wireless_attrs[] = { 494 struct attribute attr; 505 static ssize_t rx_queue_attr_show(struct kobject *kobj, struct attribute *attr, in rx_queue_attr_show() 508 struct rx_queue_attribute *attribute = to_rx_queue_attr(attr); in rx_queue_attr_show() local 511 if (!attribute->show) in rx_queue_attr_show() 514 return attribute->show(queue, attribute, buf); in rx_queue_attr_show() 517 static ssize_t rx_queue_attr_store(struct kobject *kobj, struct attribute *attr, in rx_queue_attr_store() 520 struct rx_queue_attribute *attribute = to_rx_queue_attr(attr); in rx_queue_attr_store() local 523 if (!attribute->store) in rx_queue_attr_store() [all …]
|
/linux-3.4.99/net/batman-adv/ |
D | bat_sysfs.c | 67 ssize_t store_##_name(struct kobject *kobj, struct attribute *attr, \ 77 ssize_t show_##_name(struct kobject *kobj, struct attribute *attr, \ 94 ssize_t store_##_name(struct kobject *kobj, struct attribute *attr, \ 104 ssize_t show_##_name(struct kobject *kobj, struct attribute *attr, \ 158 struct attribute *attr, in __store_bool_attr() 210 const struct attribute *attr, in __store_uint_attr() 223 static ssize_t show_vis_mode(struct kobject *kobj, struct attribute *attr, in show_vis_mode() 234 static ssize_t store_vis_mode(struct kobject *kobj, struct attribute *attr, in store_vis_mode() 275 static ssize_t show_bat_algo(struct kobject *kobj, struct attribute *attr, in show_bat_algo() 288 static ssize_t show_gw_mode(struct kobject *kobj, struct attribute *attr, in show_gw_mode() [all …]
|
D | bat_sysfs.h | 30 struct attribute attr; 31 ssize_t (*show)(struct kobject *kobj, struct attribute *attr, 33 ssize_t (*store)(struct kobject *kobj, struct attribute *attr,
|
/linux-3.4.99/Documentation/filesystems/ |
D | sysfs.txt | 68 An attribute definition is simply: 70 struct attribute { 77 int sysfs_create_file(struct kobject * kobj, const struct attribute * attr); 78 void sysfs_remove_file(struct kobject * kobj, const struct attribute * attr); 81 A bare attribute contains no means to read or write the value of the 82 attribute. Subsystems are encouraged to define their own attribute 89 struct attribute attr; 123 When a subsystem defines a new attribute type, it must implement a 125 show and store methods of the attribute owners. 128 ssize_t (*show)(struct kobject *, struct attribute *, char *); [all …]
|
/linux-3.4.99/Documentation/power/ |
D | power_supply_class.txt | 13 Each attribute has well defined meaning, up to unit of measure used. While 19 The core attribute set is subject to the standard Linux evolution (i.e. 20 if it will be found that some attribute is applicable to many power supply 66 ~ CAPACITY attribute represents capacity in *percents*, from 0 to 100. ~ 75 STATUS - this attribute represents operating status (charging, full, 92 Battery driver also can use this attribute just to inform userspace 145 Q: Where is POWER_SUPPLY_PROP_XYZ attribute? 146 A: If you cannot find attribute suitable for your driver needs, feel free 156 Q: I have some very specific attribute (e.g. battery color), should I add 157 this attribute to standard ones? [all …]
|
/linux-3.4.99/Documentation/ |
D | edac.txt | 78 In the kernel there is a PCI device attribute located in sysfs that is 79 checked by the EDAC PCI scanning code. If that attribute is set, 80 PCI parity/error scanning is skipped for that device. The attribute 135 EDAC presents a 'sysfs' interface for control, reporting and attribute 228 EDAC control and attribute files. 234 In 'mcX' directories are EDAC control and attribute files for 257 This attribute file displays how many seconds have elapsed since the 263 Memory Controller name attribute file: 267 This attribute file displays the type of memory controller 271 Total memory managed by this memory controller attribute file: [all …]
|
/linux-3.4.99/arch/ia64/kernel/ |
D | efi.c | 251 if (!(md->attribute & EFI_MEMORY_WB)) in is_memory_available() 266 u64 attribute; member 290 return (md->attribute & EFI_MEMORY_WB); in efi_wb() 296 return (md->attribute & EFI_MEMORY_UC); in efi_uc() 307 if (k->attribute != attr) in walk() 618 i, md->type, md->attribute, md->phys_addr, in efi_init() 642 if (md->attribute & EFI_MEMORY_RUNTIME) { in efi_enter_virtual_mode() 647 if (md->attribute & EFI_MEMORY_WB) { in efi_enter_virtual_mode() 649 } else if (md->attribute & EFI_MEMORY_UC) { in efi_enter_virtual_mode() 651 } else if (md->attribute & EFI_MEMORY_WC) { in efi_enter_virtual_mode() [all …]
|
/linux-3.4.99/drivers/staging/ramster/cluster/ |
D | masklog.c | 68 struct attribute attr; 105 static struct attribute *mlog_attr_ptrs[MLOG_MAX_BITS] = {NULL, }; 107 static ssize_t mlog_show(struct kobject *obj, struct attribute *attr, in mlog_show() 115 static ssize_t mlog_store(struct kobject *obj, struct attribute *attr, in mlog_store()
|
/linux-3.4.99/drivers/pci/hotplug/ |
D | fakephp.c | 33 static ssize_t legacy_show(struct kobject *kobj, struct attribute *attr, in legacy_show() 46 static ssize_t legacy_store(struct kobject *kobj, struct attribute *attr, in legacy_store() 63 static struct attribute *legacy_attrs[] = { 64 &(struct attribute){ .name = "power", .mode = 0644 },
|
/linux-3.4.99/fs/ocfs2/cluster/ |
D | masklog.c | 68 struct attribute attr; 105 static struct attribute *mlog_attr_ptrs[MLOG_MAX_BITS] = {NULL, }; 107 static ssize_t mlog_show(struct kobject *obj, struct attribute *attr, in mlog_show() 115 static ssize_t mlog_store(struct kobject *obj, struct attribute *attr, in mlog_store()
|
/linux-3.4.99/drivers/video/console/ |
D | fbcon.h | 237 int attribute = 0; in get_attribute() local 241 attribute |= FBCON_ATTRIBUTE_UNDERLINE; in get_attribute() 243 attribute |= FBCON_ATTRIBUTE_REVERSE; in get_attribute() 245 attribute |= FBCON_ATTRIBUTE_BOLD; in get_attribute() 248 return attribute; in get_attribute()
|
/linux-3.4.99/drivers/cpufreq/ |
D | cpufreq_conservative.c | 166 struct attribute *attr, char *buf) in show_sampling_rate_min() 176 (struct kobject *kobj, struct attribute *attr, char *buf) \ 188 struct attribute *b, in store_sampling_down_factor() 202 static ssize_t store_sampling_rate(struct kobject *a, struct attribute *b, in store_sampling_rate() 216 static ssize_t store_up_threshold(struct kobject *a, struct attribute *b, in store_up_threshold() 231 static ssize_t store_down_threshold(struct kobject *a, struct attribute *b, in store_down_threshold() 247 static ssize_t store_ignore_nice_load(struct kobject *a, struct attribute *b, in store_ignore_nice_load() 279 static ssize_t store_freq_step(struct kobject *a, struct attribute *b, in store_freq_step() 305 static struct attribute *dbs_attributes[] = {
|