next up previous contents
Next: The Virtual File System Up: Basic File System Concepts Previous: Links

Device special files

 

In Unix-like operating systems, devices can be accessed via special files. A device special file does not use any space on the filesystem. It is only an access point to the device driver.

Two types of special files exist: character and block special files. The former allows I/O operations in character mode while the later requires data to be written in block mode via the buffer cache functions. When an I/O request is made on a special file, it is forwarded to a (pseudo) device driver. A special file is referenced by a major number, which identifies the device type, and a minor number, which identifies the unit.



Andrew Anderson
Thu Mar 7 22:36:29 EST 1996