User Tools

Site Tools


device

Device

A device file is an interface to a device driver. A device file is sometimes called a special file or a device special file. The device file allows a program to interact with the device using standard input/output system calls.

Two types of device file: * character - serial stream of characters * block - fixed size blocks, random access, buffered, example: disk

Most device files are managed as part of a virtual file system mounted at /dev.

Device file is pointer, not container.

size device numbers, major and minor major driver minor instance

full null random urandom zero

ls -li /dev | grep cdrom

ls -li /dev | grep tty

pts pseudo terminal slave a type of tty

/dev/pts character special file

xterm

bus

      PCI, ISA, EISA

cpu clock, 200 MHz pulses, per second system clock, time of day time-sharing clock, interrupt cpu as reminder to switch users

chipset

      NorthBridge
      SouthBridge
device.txt · Last modified: 2021/01/28 05:46 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki