---
name: "pci_read_rom"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/pci_read_rom"
---

# pci\_read\_rom(9)

read a PCI ROM

## NAME

pci\_read\_rom - read a PCI ROM

## SYNOPSIS

**ssize\_t pci\_read\_rom(struct file \*** *filp***, struct kobject \*** *kobj***, struct bin\_attribute \*** *bin\_attr***, char \*** *buf***, loff\_t** *off***, size\_t** *count***);**

## ARGUMENTS

*filp*

sysfs file

*kobj*

kernel object handle

*bin\_attr*

struct bin\_attribute for this file

*buf*

where to put the data we read from the ROM

*off*

file offset

*count*

number of bytes to read

## DESCRIPTION

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

## COPYRIGHT
