Skip to content

Commit

Permalink
Add note about PCIDB_CHROOT to README
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypipes committed Nov 8, 2018
1 parent 9e7cb0c commit cfc6258
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ struct contains a number of fields that may be queried for PCI information:
the term "product ID" in `pcidb` because it more accurately reflects what the
identifier is for: a specific product line produced by the vendor.

**NOTE**: The default root mountpoint that `pcidb` uses when looking for
information about the host system is `/`. So, for example, when looking up
known PCI IDS DB files on Linux, `pcidb` will attempt to discover a pciids DB
file at `/usr/share/misc/pci.ids`. If you are calling `pcidb` from a system
that has an alternate root mountpoint, you can set the `PCIDB_CHROOT`
environment variable to that alternate path. for example, if you are executing
from within an application container that has bind-mounted the root host
filesystem to the mount point `/host`, you would set `PCIDB_CHROOT` to `/host`
so that pcidb can find files like `/usr/share/misc/pci.ids` at
`/host/usr/share/misc/pci.ids`.

### PCI device classes

Let's take a look at the PCI device class information and how to query the PCI
Expand Down

0 comments on commit cfc6258

Please sign in to comment.