mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
Kernel: Keep records of PCI::Address & PCI::ID pairs for enumeration
This commit is contained in:
parent
688dd9ea66
commit
65f939b55c
Notes:
sideshowbarker
2024-07-19 07:44:07 +09:00
Author: https://github.com/supercomputer7
Commit: 65f939b55c
Pull-request: https://github.com/SerenityOS/serenity/pull/1734
Reviewed-by: https://github.com/awesomekling
12 changed files with 49 additions and 13 deletions
|
@ -338,7 +338,7 @@ Optional<KBuffer> procfs$pci(InodeIdentifier)
|
|||
{
|
||||
KBufferBuilder builder;
|
||||
JsonArraySerializer array { builder };
|
||||
PCI::enumerate_all([&array](PCI::Address address, PCI::ID id) {
|
||||
PCI::enumerate([&array](PCI::Address address, PCI::ID id) {
|
||||
auto obj = array.add_object();
|
||||
obj.add("seg", address.seg());
|
||||
obj.add("bus", address.bus());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue