mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
Kernel: Keep records of PCI::Address & PCI::ID pairs for enumeration
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user