Re: git: 14b8a27883c1 - main - pciconf: Add a tree mode
- In reply to: John Baldwin : "git: 14b8a27883c1 - main - pciconf: Add a tree mode"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 Mar 2026 17:21:08 UTC
On 3/10/26 12:53, John Baldwin wrote: > The branch main has been updated by jhb: > > URL: https://cgit.FreeBSD.org/src/commit/?id=14b8a27883c15d3add3114f855eff7c6bda1b015 > > commit 14b8a27883c15d3add3114f855eff7c6bda1b015 > Author: John Baldwin <jhb@FreeBSD.org> > AuthorDate: 2026-03-10 16:51:00 +0000 > Commit: John Baldwin <jhb@FreeBSD.org> > CommitDate: 2026-03-10 16:51:00 +0000 > > pciconf: Add a tree mode > > This lists PCI devices in a hierarchy showing the parent/child > relationship of PCI devices and bridges. While this is inspired by > lspci -t output, the format is closer to ps -d and also prefers using > new-bus device names when possible. If a device does not have a > driver, the PCI selector is output in place of the device name. > > When the -v flag is given, the vendor and device ID strings are output > after the device name. If a string for an ID isn't found, the hex ID > values are output instead. > > Reviewed by: imp > Sponsored by: Chelsio Communications > Differential Revision: https://reviews.freebsd.org/D55774 I did play with enabling some of other list options like -b and -B to output as indented under each node in the tree. If there is a desire for that, I could add it. I found it a bit distracting when I prototyped it. OTOH, it might be useful for -c at least. One of the things I think is helpful in this view is that you can easily see the PCI bridge that is the upstream port of a PCI-e link connecting to a leaf device. -- John Baldwin