mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:32:46 +00:00 
			
		
		
		
	Kernel/PCI: Cache more details about PCI devices when enumerating them
There's no good reason to fetch these values each time we need them.
This commit is contained in:
		
							parent
							
								
									e22d9dc360
								
							
						
					
					
						commit
						82bb08a15c
					
				
					 14 changed files with 85 additions and 41 deletions
				
			
		|  | @ -41,7 +41,7 @@ UNMAP_AFTER_INIT void PCIBusSysFSDirectory::initialize() | |||
| UNMAP_AFTER_INIT PCIBusSysFSDirectory::PCIBusSysFSDirectory() | ||||
|     : SysFSDirectory("pci", SysFSComponentRegistry::the().buses_directory()) | ||||
| { | ||||
|     PCI::enumerate([&](const Address& address, ID) { | ||||
|     PCI::enumerate([&](const Address& address, PhysicalID const&) { | ||||
|         auto pci_device = PCI::PCIDeviceSysFSDirectory::create(*this, address); | ||||
|         m_components.append(pci_device); | ||||
|     }); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Liav A
						Liav A