Skip to main content

Inspect and control PCI device-driver binding in Linux

Project description

devbind: inspect and control PCI device-driver binding in Linux

devbind

PyPI Python Test

Inspect and control PCI device-driver binding in Linux.

Install

pipx install devbind

Or standalone (single-file, stdlib only, no pip needed):

curl -fsSL https://raw.githubusercontent.com/xnvme/devbind/main/src/devbind/devbind.py \
  -o ~/.local/bin/devbind && chmod +x ~/.local/bin/devbind

Shell completion

devbind --print-completion bash > ~/.local/share/bash-completion/completions/devbind

Open a new shell (or source the file) and tab-completion is live: devbind --bind <TAB> lists nvme vfio-pci vfio-noiommu uio_pci_generic.

Usage

devbind --list                                       # list NVMe devices and their drivers
sudo devbind --bind vfio-pci --device 0000:01:00.0   # bind one device to vfio-pci
sudo devbind --bind nvme --device 0000:01:00.0       # rebind to the native driver
sudo devbind --unbind --device 0000:01:00.0          # unbind without rebinding

devbind --list sample output:

system:
  drivers:
  - nvme: {'available': True}
  - uio_pci_generic: {'available': True}
  - vfio-noiommu: {'available': False}
  - vfio-pci: {'available': True}
  limits:
    memlock_soft: unlimited
    memlock_hard: unlimited

Related

  • iommu: inspect and configure the IOMMU isolation level in Linux.
  • hugepages: inspect and manage Linux hugepages.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

devbind-0.3.6.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

devbind-0.3.6-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file devbind-0.3.6.tar.gz.

File metadata

  • Download URL: devbind-0.3.6.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for devbind-0.3.6.tar.gz
Algorithm Hash digest
SHA256 99530847d33258825cc0d0822f90f93571ca99e015ae6a4c5606d1332570eef7
MD5 abc966a7892f76525e4095454190e7ff
BLAKE2b-256 ccd21fab354be3df53ee5536badb0a200bac0654b031c3e8802d3bc9182e73fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for devbind-0.3.6.tar.gz:

Publisher: publish.yml on xnvme/devbind

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file devbind-0.3.6-py3-none-any.whl.

File metadata

  • Download URL: devbind-0.3.6-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for devbind-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f416d2e48bf9f90618205f071342f694b2559e4b40ee28333404dd3026102e17
MD5 eb6cef14780e4f108574c477dcea6cf8
BLAKE2b-256 9f247347065e8ffb34955f72abd96c32cfb711697dedeb644314bc5e72c8b40f

See more details on using hashes here.

Provenance

The following attestation bundles were made for devbind-0.3.6-py3-none-any.whl:

Publisher: publish.yml on xnvme/devbind

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page