mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:32:45 +00:00 
			
		
		
		
	 7c0540a229
			
		
	
	
		7c0540a229
		
	
	
	
	
		
			
			This has KString, KBuffer, DoubleBuffer, KBufferBuilder, IOWindow, UserOrKernelBuffer and ScopedCritical classes being moved to the Kernel/Library subdirectory. Also, move the panic and assertions handling code to that directory.
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			748 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			748 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2022, Liav A. <liavalb@hotmail.co.il>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/RefPtr.h>
 | |
| #include <AK/Types.h>
 | |
| #include <Kernel/FileSystem/SysFS/Subsystems/Kernel/GlobalInformation.h>
 | |
| #include <Kernel/Library/KBufferBuilder.h>
 | |
| #include <Kernel/Library/UserOrKernelBuffer.h>
 | |
| 
 | |
| namespace Kernel {
 | |
| 
 | |
| class SysFSCPUInformation final : public SysFSGlobalInformation {
 | |
| public:
 | |
|     virtual StringView name() const override { return "cpuinfo"sv; }
 | |
| 
 | |
|     static NonnullRefPtr<SysFSCPUInformation> must_create(SysFSDirectory const& parent_directory);
 | |
| 
 | |
| private:
 | |
|     SysFSCPUInformation(SysFSDirectory const& parent_directory);
 | |
|     virtual ErrorOr<void> try_generate(KBufferBuilder& builder) override;
 | |
| };
 | |
| 
 | |
| }
 |