pci_read_rom — read a PCI ROM


ssize_t pci_read_rom (struct file * filp,
 struct kobject * kobj,
 struct bin_attribute * bin_attr,
 char * buf,
 loff_t off,
 size_t count);


struct file * filp

sysfs file

struct kobject * kobj

kernel object handle

struct bin_attribute * bin_attr

struct bin_attribute for this file

char * buf

where to put the data we read from the ROM

loff_t off

file offset

size_t count

number of bytes to read


Put count bytes starting at off into buf from the ROM in the PCI device corresponding to kobj.