'\" t .\" Title: pci_read_rom .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Hardware Interfaces .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "PCI_READ_ROM" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "Hardware Interfaces" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" pci_read_rom \- read a PCI ROM .SH "SYNOPSIS" .HP \w'ssize_t\ pci_read_rom('u .BI "ssize_t pci_read_rom(struct\ file\ *\ " "filp" ", struct\ kobject\ *\ " "kobj" ", struct\ bin_attribute\ *\ " "bin_attr" ", char\ *\ " "buf" ", loff_t\ " "off" ", size_t\ " "count" ");" .SH "ARGUMENTS" .PP \fIstruct file * filp\fR .RS 4 sysfs file .RE .PP \fIstruct kobject * kobj\fR .RS 4 kernel object handle .RE .PP \fIstruct bin_attribute * bin_attr\fR .RS 4 struct bin_attribute for this file .RE .PP \fIchar * buf\fR .RS 4 where to put the data we read from the ROM .RE .PP \fIloff_t off\fR .RS 4 file offset .RE .PP \fIsize_t count\fR .RS 4 number of bytes to read .RE .SH "DESCRIPTION" .PP Put \fIcount\fR bytes starting at \fIoff\fR into \fIbuf\fR from the ROM in the PCI device corresponding to \fIkobj\fR\&. .SH "COPYRIGHT" .br