Crates.io | pciutils |
lib.rs | pciutils |
version | 0.1.1 |
source | src |
created_at | 2023-08-08 00:53:34.309885 |
updated_at | 2023-08-08 01:03:24.28181 |
description | A clone of pciutils in Rust |
homepage | |
repository | https://github.com/ekohandel/pciutils.rs |
max_upload_size | |
id | 938638 |
size | 63,195 |
This is a very much work in progress clone of pciutils. The goal is to eventually match full functionality of pciutils library and the associated lspci
and setpci
command line utilities.
Currently only minimal functionality is supported. lspci
command line utility exists and is able to discover traditional capabilities.
$ sudo -E bash -c 'cargo run --bin lspci -- -vs04:00.0'
Finished dev [unoptimized + debuginfo] target(s) in 0.01s
Running `./lspci '-vs04:00.0'`
04:00.0 USB controller: Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge DD 2018] (rev 06)
Subsystem: Vendor 8086 Device 0000
Memory at 82000000 (32-bit, non-prefetchable)
Capabilities: [80] Power Management version 3
Capabilities: [88] Capability 0x5 at 0x88
Capabilities: [c0] Capability 0x10 at 0xc0
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci