mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:02:46 +00:00 
			
		
		
		
	Kernel: Replace "folder" => "directory" everywhere
Folders are a GUI concept. File systems have directories.
This commit is contained in:
		
							parent
							
								
									22611ca136
								
							
						
					
					
						commit
						2da0581fd2
					
				
					 15 changed files with 246 additions and 246 deletions
				
			
		|  | @ -368,13 +368,13 @@ void Capability::write32(u32 field, u32 value) | |||
|     PCI::write32(m_address, m_ptr + field, value); | ||||
| } | ||||
| 
 | ||||
| UNMAP_AFTER_INIT NonnullRefPtr<PCIDeviceSysFSDirectory> PCIDeviceSysFSDirectory::create(const SysFSDirectory& parent_folder, Address address) | ||||
| UNMAP_AFTER_INIT NonnullRefPtr<PCIDeviceSysFSDirectory> PCIDeviceSysFSDirectory::create(const SysFSDirectory& parent_directory, Address address) | ||||
| { | ||||
|     return adopt_ref(*new (nothrow) PCIDeviceSysFSDirectory(parent_folder, address)); | ||||
|     return adopt_ref(*new (nothrow) PCIDeviceSysFSDirectory(parent_directory, address)); | ||||
| } | ||||
| 
 | ||||
| UNMAP_AFTER_INIT PCIDeviceSysFSDirectory::PCIDeviceSysFSDirectory(const SysFSDirectory& parent_folder, Address address) | ||||
|     : SysFSDirectory(String::formatted("{:04x}:{:04x}:{:02x}.{}", address.seg(), address.bus(), address.device(), address.function()), parent_folder) | ||||
| UNMAP_AFTER_INIT PCIDeviceSysFSDirectory::PCIDeviceSysFSDirectory(const SysFSDirectory& parent_directory, Address address) | ||||
|     : SysFSDirectory(String::formatted("{:04x}:{:04x}:{:02x}.{}", address.seg(), address.bus(), address.device(), address.function()), parent_directory) | ||||
| { | ||||
|     m_components.append(PCIDeviceAttributeSysFSComponent::create("vendor", *this, PCI_VENDOR_ID, 2)); | ||||
|     m_components.append(PCIDeviceAttributeSysFSComponent::create("device_id", *this, PCI_DEVICE_ID, 2)); | ||||
|  | @ -388,12 +388,12 @@ UNMAP_AFTER_INIT PCIDeviceSysFSDirectory::PCIDeviceSysFSDirectory(const SysFSDir | |||
| 
 | ||||
| UNMAP_AFTER_INIT void PCIBusSysFSDirectory::initialize() | ||||
| { | ||||
|     auto pci_folder = adopt_ref(*new (nothrow) PCIBusSysFSDirectory()); | ||||
|     SysFSComponentRegistry::the().register_new_component(pci_folder); | ||||
|     auto pci_directory = adopt_ref(*new (nothrow) PCIBusSysFSDirectory()); | ||||
|     SysFSComponentRegistry::the().register_new_component(pci_directory); | ||||
| } | ||||
| 
 | ||||
| UNMAP_AFTER_INIT PCIBusSysFSDirectory::PCIBusSysFSDirectory() | ||||
|     : SysFSDirectory("pci", SysFSComponentRegistry::the().root_folder()) | ||||
|     : SysFSDirectory("pci", SysFSComponentRegistry::the().root_directory()) | ||||
| { | ||||
|     PCI::enumerate([&](const Address& address, ID) { | ||||
|         auto pci_device = PCI::PCIDeviceSysFSDirectory::create(*this, address); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling