|
Linux Kernel
3.7.1
|
#include <linux/kernel.h>#include <linux/sched.h>#include <linux/pci.h>#include <linux/stat.h>#include <linux/export.h>#include <linux/topology.h>#include <linux/mm.h>#include <linux/fs.h>#include <linux/capability.h>#include <linux/security.h>#include <linux/pci-aspm.h>#include <linux/slab.h>#include <linux/vgaarb.h>#include <linux/pm_runtime.h>#include "pci.h"Go to the source code of this file.
Macros | |
| #define | pci_config_attr(field, format_string) |
Functions | |
| pci_config_attr (vendor,"0x%04x\n") | |
| pci_config_attr (device,"0x%04x\n") | |
| pci_config_attr (subsystem_vendor,"0x%04x\n") | |
| pci_config_attr (subsystem_device,"0x%04x\n") | |
| pci_config_attr (class,"0x%06x\n") | |
| pci_config_attr (irq,"%u\n") | |
| int __weak | pci_create_resource_files (struct pci_dev *dev) |
| void __weak | pci_remove_resource_files (struct pci_dev *dev) |
| int __weak | pcibios_add_platform_entries (struct pci_dev *dev) |
| int __must_check | pci_create_sysfs_dev_files (struct pci_dev *pdev) |
| void | pci_remove_sysfs_dev_files (struct pci_dev *pdev) |
| late_initcall (pci_sysfs_init) | |
Variables | |
| struct device_attribute | pci_dev_attrs [] |
| struct device_attribute | pcibus_dev_attrs [] |
| struct device_attribute | vga_attr = __ATTR_RO(boot_vga) |
| #define pci_config_attr | ( | field, | |
| format_string | |||
| ) |
Definition at line 37 of file pci-sysfs.c.
| late_initcall | ( | pci_sysfs_init | ) |
| pci_config_attr | ( | vendor | , |
| "0x%04x\n" | |||
| ) |
| pci_config_attr | ( | device | , |
| "0x%04x\n" | |||
| ) |
| pci_config_attr | ( | subsystem_vendor | , |
| "0x%04x\n" | |||
| ) |
| pci_config_attr | ( | subsystem_device | , |
| "0x%04x\n" | |||
| ) |
| pci_config_attr | ( | class | , |
| "0x%06x\n" | |||
| ) |
| pci_config_attr | ( | irq | , |
| "%u\n" | |||
| ) |
pci_create_resource_files - create resource files in sysfs for : dev in question
Walk the resources in creating files for each resource available.
Definition at line 1061 of file pci-sysfs.c.
| int __must_check pci_create_sysfs_dev_files | ( | struct pci_dev * | pdev | ) |
Definition at line 1226 of file pci-sysfs.c.
pci_remove_resource_files - cleanup resource files : dev to cleanup
If we created resource files for , remove them from sysfs and free their resources.
Definition at line 1062 of file pci-sysfs.c.
pci_remove_sysfs_dev_files - cleanup PCI specific sysfs files : device whose entries we should free
Cleanup when is removed from sysfs.
Definition at line 1332 of file pci-sysfs.c.
Definition at line 1152 of file pci-sysfs.c.
| struct device_attribute pci_dev_attrs[] |
Definition at line 407 of file pci-sysfs.c.
| struct device_attribute pcibus_dev_attrs[] |
Definition at line 437 of file pci-sysfs.c.
| struct device_attribute vga_attr = __ATTR_RO(boot_vga) |
Definition at line 459 of file pci-sysfs.c.
1.8.2