Linux Kernel
3.7.1
|
Go to the source code of this file.
Macros | |
#define | EEH_SHOW_ATTR(_name, _memb, _format) |
Functions | |
EEH_SHOW_ATTR (eeh_mode, mode,"0x%x") | |
EEH_SHOW_ATTR (eeh_config_addr, config_addr,"0x%x") | |
EEH_SHOW_ATTR (eeh_pe_config_addr, pe_config_addr,"0x%x") | |
void | eeh_sysfs_add_device (struct pci_dev *pdev) |
void | eeh_sysfs_remove_device (struct pci_dev *pdev) |
#define EEH_SHOW_ATTR | ( | _name, | |
_memb, | |||
_format | |||
) |
EEH_SHOW_ATTR – Create sysfs entry for eeh statistic : name of file in sysfs directory : name of member in struct pci_dn to access : printf format for display
All of the attributes look very similar, so just auto-gen a cut-n-paste routine to display them.
Definition at line 39 of file eeh_sysfs.c.
EEH_SHOW_ATTR | ( | eeh_mode | , |
mode | , | ||
"0x%x" | |||
) |
EEH_SHOW_ATTR | ( | eeh_config_addr | , |
config_addr | , | ||
"0x%x" | |||
) |
EEH_SHOW_ATTR | ( | eeh_pe_config_addr | , |
pe_config_addr | , | ||
"0x%x" | |||
) |
Definition at line 57 of file eeh_sysfs.c.
Definition at line 69 of file eeh_sysfs.c.