| 
									
								         
								        
								          
								        
								        Describe how the kernel differentiates device files and ordinary files.- Kernel checks 'type' field in the file's inode structure.
  - There are 2 device files- Character device file and Block device file. To distinguish these two, specify b – for block device file and c – for character device file in the inode structure of the file. An ordinary file does not require these fields.
  - A device file is an interface for a device driver which appears in a file system.
  - Device files provide simple interfaces to peripheral devices, such as printers and serial ports.
								          
                                 |