Device file/en

A device file is Article description::an interface for a device driver that appears in a as if it were an ordinary file. Such files allow software to interact with a device driver. They are found in the directory.

Installation
Device files in Gentoo are managed by, which will take care of installation of any required files.

Alternatives to include:



Creation
Each device (either internal or peripheral) has a corresponding device file. During kernel boot time the kernel detects devices and creates device files in the virtual  filesystem. Then takes over the device files and stores them in. From this point on, is in charge of creating new device files and deleting unavailable ones.

Information can be obtained by :

Get device info using followed by the device path.

Permissions
Like other files, access to device file is restricted by filesystem permissions. The permission to access a device file have to be granted first to a user:
 * Add the user to the group the device file belongs to.

Symlinks
creates for some device classes additional symlinks. The device file (first CD-ROM drive) and  (first DVD drive) are just symlinks to the device file  (first optical drive). You can use the symlinks in programs and config files like every other device file. Other examples are for input devices or  for storage devices.

External resources

 * Managing Device Files - On Linux Sea by Sven Vermeulen
 * K1SS — replace eudev with the device manager of your choosing