mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:52:43 +00:00 
			
		
		
		
	 33f033066c
			
		
	
	
		33f033066c
		
	
	
	
	
		
			
			Both should reside in the SysFS firmware directory which is normally located in /sys/firmware. Also, apply some OOM-safety patterns when creating the BIOS and ACPI directories.
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			371 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			371 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Liav A. <liavalb@hotmail.co.il>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/Types.h>
 | |
| #include <Kernel/FileSystem/SysFS.h>
 | |
| 
 | |
| namespace Kernel {
 | |
| 
 | |
| class FirmwareSysFSDirectory : public SysFSDirectory {
 | |
| public:
 | |
|     static void initialize();
 | |
| 
 | |
|     void create_components();
 | |
| 
 | |
| private:
 | |
|     FirmwareSysFSDirectory();
 | |
| };
 | |
| 
 | |
| }
 |