Skip to content

pci: add Walk, Ancestors and Root helpers on Device - #465

Merged
jaypipes merged 2 commits into
jaypipes:mainfrom
dims:pci-device-tree-walk
May 18, 2026
Merged

jaypipes merged 2 commits into
jaypipes:mainfrom
dims:pci-device-tree-walk

Conversation

@dims

@dims dims commented May 14, 2026

Copy link
Copy Markdown
Contributor

PR #463 exposed Parent and Children pointers on pci.Device so callers
can walk the tree. Anything non-trivial consuming those fields ends
up reinventing the same three traversals.

PR jaypipes#463 exposed Parent and Children pointers on pci.Device so
callers can walk the tree. Anything non-trivial consuming those
fields ends up reinventing the same three traversals.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
@dims
dims force-pushed the pci-device-tree-walk branch from de46d87 to 0cbea46 Compare May 14, 2026 11:01
@dims

dims commented May 14, 2026

Copy link
Copy Markdown
Contributor Author

feels like this will be more useful outside of my repo.

@jaypipes jaypipes left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree this is generally useful and I think it's fine to add these methods to the pkg/pci.Device struct.

@jaypipes
jaypipes merged commit b959acc into jaypipes:main May 18, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants