{
    "mode": "man",
    "parameter": "pcilib",
    "section": "7",
    "url": "https://www.chedong.com/phpMan.php/man/pcilib/7/json",
    "generated": "2026-06-15T14:39:39Z",
    "sections": {
        "NAME": {
            "content": "pcilib - a library for accessing PCI devices\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The PCI library (also known as pcilib and libpci) is a portable library for accessing PCI de‐\nvices and their configuration space.\n\n",
            "subsections": []
        },
        "ACCESS METHODS": {
            "content": "The library supports a variety of methods to access the configuration space on different  op‐\nerating  systems.  By  default,  the  first matching method in this list is used, but you can\nspecify override the decision (see the -A switch of lspci).\n\n",
            "subsections": [
                {
                    "name": "linux-sysfs",
                    "content": "The /sys filesystem on Linux 2.6 and newer. The standard header of the config space is\navailable  to all users, the rest only to root. Supports extended configuration space,\nPCI domains, VPD (from Linux 2.6.26), physical slots (also since Linux 2.6.26) and in‐\nformation on attached kernel drivers.\n"
                },
                {
                    "name": "linux-proc",
                    "content": "The  /proc/bus/pci  interface supported by Linux 2.1 and newer. The standard header of\nthe config space is available to all users, the rest only to root.\n"
                },
                {
                    "name": "intel-conf1",
                    "content": "Direct hardware access via Intel configuration mechanism 1. Available on i386 and com‐\npatibles on Linux, Solaris/x86, GNU Hurd, Windows, BeOS and Haiku. Requires root priv‐\nileges.\n"
                },
                {
                    "name": "intel-conf2",
                    "content": "Direct hardware access via Intel configuration mechanism 2. Available on i386 and com‐\npatibles on Linux, Solaris/x86, GNU Hurd, Windows, BeOS and Haiku. Requires root priv‐\nileges. Warning: This method is able to address only the first 16 devices on  any  bus\nand it seems to be very unreliable in many cases.\n"
                },
                {
                    "name": "fbsd-device",
                    "content": "The /dev/pci device on FreeBSD. Requires root privileges.\n"
                },
                {
                    "name": "aix-device",
                    "content": "Access method used on AIX. Requires root privileges.\n"
                },
                {
                    "name": "nbsd-libpci",
                    "content": "The /dev/pci0 device on NetBSD accessed using the local libpci library.\n"
                },
                {
                    "name": "obsd-device",
                    "content": "The /dev/pci device on OpenBSD. Requires root privileges.\n\ndump   Read  the  contents  of configuration registers from a file specified in the dump.name\nparameter. The format corresponds to the output of lspci -x.\n\ndarwin Access method used on Mac OS X / Darwin. Must be run as root and the system must  have\nbeen booted with debug=0x144.\n\n"
                }
            ]
        },
        "PARAMETERS": {
            "content": "The  library  is  controlled by several parameters. They should have sensible default values,\nbut in case you want to do something unusual (or even something weird), you can override them\n(see the -O switch of lspci).\n\n",
            "subsections": [
                {
                    "name": "Parameters of specific access methods",
                    "content": ""
                },
                {
                    "name": "dump.name",
                    "content": "Name of the bus dump file to read from.\n"
                },
                {
                    "name": "fbsd.path",
                    "content": "Path to the FreeBSD PCI device.\n"
                },
                {
                    "name": "nbsd.path",
                    "content": "Path to the NetBSD PCI device.\n"
                },
                {
                    "name": "obsd.path",
                    "content": "Path to the OpenBSD PCI device.\n"
                },
                {
                    "name": "proc.path",
                    "content": "Path to the procfs bus tree.\n"
                },
                {
                    "name": "sysfs.path",
                    "content": "Path to the sysfs device tree.\n\n"
                },
                {
                    "name": "Parameters for resolving of ID's via DNS",
                    "content": ""
                },
                {
                    "name": "net.domain",
                    "content": "DNS domain containing the ID database.\n\nnet.cachename\nName of the file used for caching of resolved ID's.\n\n"
                },
                {
                    "name": "Parameters for resolving of ID's via UDEV's HWDB",
                    "content": ""
                },
                {
                    "name": "hwdb.disable",
                    "content": "Disable use of HWDB if set to a non-zero value.\n\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "lspci(8), setpci(8), pci.ids(5), update-pciids(8)\n\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "The PCI Utilities are maintained by Martin Mares <mj@ucw.cz>.\n\n\n\npciutils-3.7.0                               31 May 2020                                   pcilib(7)",
            "subsections": []
        }
    },
    "summary": "pcilib - a library for accessing PCI devices",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "lspci",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/lspci/8/json"
        },
        {
            "name": "setpci",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/setpci/8/json"
        },
        {
            "name": "pci.ids",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/pci.ids/5/json"
        },
        {
            "name": "update-pciids",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/update-pciids/8/json"
        }
    ]
}