Virtual device

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by imported>Onel5969 at 00:23, 22 November 2021 (Disambiguated: kernel (computing) → kernel (operating system)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Script error: No such module "Unsubst". A virtual device in Unix is a file such as /dev/null or /dev/urandom, that is treated as a device, as far as user level software is concerned, but is generated by the kernel without reference to hardware.

For instance when /dev/null is written to, the kernel tells the program it wrote everything to it (without actually writing it anywhere), and when read from, the reading program is told that it has reached the end of the file. It is a device file (it can be made with mknod for instance), but does not reference any hardware.

DOS-, Windows- and OS/2-like operating systems define the NUL device that performs a similar function (but is implemented as part of the file name processing – no actual file exists by that name).


Template:Asbox

de:Gerätedatei es:Fichero de dispositivo pt:Nó de dispositivo ru:/dev