pciutils

Crates.iopciutils
lib.rspciutils
version0.1.1
sourcesrc
created_at2023-08-08 00:53:34.309885
updated_at2023-08-08 01:03:24.28181
descriptionA clone of pciutils in Rust
homepage
repositoryhttps://github.com/ekohandel/pciutils.rs
max_upload_size
id938638
size63,195
Abe Kohandel (ekohandel)

documentation

README

pciutils.rs

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.

Build

Status

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
Commit count: 29

cargo fmt