mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 11:12:45 +00:00 
			
		
		
		
	Kernel: Add empty BlockDevice class.
This commit is contained in:
		
							parent
							
								
									994279d56c
								
							
						
					
					
						commit
						2dc7c5a7b0
					
				
					 4 changed files with 17 additions and 2 deletions
				
			
		
							
								
								
									
										5
									
								
								Kernel/BlockDevice.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								Kernel/BlockDevice.cpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| #include <Kernel/BlockDevice.h> | ||||
| 
 | ||||
| BlockDevice::~BlockDevice() | ||||
| { | ||||
| } | ||||
							
								
								
									
										11
									
								
								Kernel/BlockDevice.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Kernel/BlockDevice.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <Kernel/Device.h> | ||||
| 
 | ||||
| class BlockDevice : public Device { | ||||
| public: | ||||
|     virtual ~BlockDevice() override; | ||||
| 
 | ||||
| protected: | ||||
|     BlockDevice(unsigned major, unsigned minor) : Device(major, minor) { } | ||||
| }; | ||||
|  | @ -1,5 +1,3 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <Kernel/CharacterDevice.h> | ||||
| 
 | ||||
| CharacterDevice::~CharacterDevice() | ||||
|  |  | |||
|  | @ -39,6 +39,7 @@ VFS_OBJS = \ | |||
|     DiskDevice.o \
 | ||||
|     Device.o \
 | ||||
|     CharacterDevice.o \
 | ||||
|     BlockDevice.o \
 | ||||
|     NullDevice.o \
 | ||||
|     FullDevice.o \
 | ||||
|     ZeroDevice.o \
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling