This patch sits on top of the last one that added mmap support to struct bin_attribute. It exports PCI resources from each device as a file in the device's sysfs directory as resourceN where N is the resource number. The file is mmapable so that userspace can do register reads and writes. drivers/pci/pci-sysfs.c | 72 ++++++++++++++++++++++++++++++++++++++++++++++++ include/linux/pci.h | 1 2 files changed, 73 insertions(+) Signed-off-by: Jesse Barnes Thanks, Jesse