Inspect and control PCI device-driver binding in Linux
Project description
devbind
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:
- uio_pci_generic: {'available': False}
- vfio-noiommu: {'available': False}
- vfio-pci: {'available': False}
- nvme: {'available': True}
limits:
memlock_soft: 64 MB
memlock_hard: 64 MB
On a host with NVMe devices visible, a props: block is also printed per device with bdf, vendor, device, classcode, driver, iommugroup, handles, and is_used.
Related
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file devbind-0.3.7.tar.gz.
File metadata
- Download URL: devbind-0.3.7.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b245b106bf9c753cd7b1de2f4204b9d98cc57c2806d22a4d89b1bfd95e11d4d
|
|
| MD5 |
4eb4f0360c701c90afeb791ed37988c3
|
|
| BLAKE2b-256 |
8e53a9b4a0721d85c97b18737fdfddd1cf65a21c66b9cd7ffe5538d9c9cd7a88
|
Provenance
The following attestation bundles were made for devbind-0.3.7.tar.gz:
Publisher:
publish.yml on xnvme/devbind
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
devbind-0.3.7.tar.gz -
Subject digest:
6b245b106bf9c753cd7b1de2f4204b9d98cc57c2806d22a4d89b1bfd95e11d4d - Sigstore transparency entry: 1535205321
- Sigstore integration time:
-
Permalink:
xnvme/devbind@40de19600a2f29beb4afcb57c6a5fb2e33f7813e -
Branch / Tag:
refs/tags/v0.3.7 - Owner: https://github.com/xnvme
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@40de19600a2f29beb4afcb57c6a5fb2e33f7813e -
Trigger Event:
push
-
Statement type:
File details
Details for the file devbind-0.3.7-py3-none-any.whl.
File metadata
- Download URL: devbind-0.3.7-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
492f6faf296701ebd808fa742911b400d0b3114d7551052604a93381df53daf9
|
|
| MD5 |
7674858f2402c0ec4aa5d94051ac0a45
|
|
| BLAKE2b-256 |
17bb5192db47f982a078b1fb2e82b5ee4d5272e8f74c7fe3d5f197ed333157ca
|
Provenance
The following attestation bundles were made for devbind-0.3.7-py3-none-any.whl:
Publisher:
publish.yml on xnvme/devbind
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
devbind-0.3.7-py3-none-any.whl -
Subject digest:
492f6faf296701ebd808fa742911b400d0b3114d7551052604a93381df53daf9 - Sigstore transparency entry: 1535205428
- Sigstore integration time:
-
Permalink:
xnvme/devbind@40de19600a2f29beb4afcb57c6a5fb2e33f7813e -
Branch / Tag:
refs/tags/v0.3.7 - Owner: https://github.com/xnvme
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@40de19600a2f29beb4afcb57c6a5fb2e33f7813e -
Trigger Event:
push
-
Statement type: