字符设备与块设备

  • A Character ('c') Device is one with which the Driver communicates by sending and receiving single characters (bytes, octets).

  • A Block ('b') Device is one with which the Driver communicates by sending entire blocks of data.

  • Examples for Character Devices: serial ports, parallel ports, sounds cards.

  • Examples for Block Devices: hard disks, USB cameras, Disk-On-Key.

  • For the user, the type of the Device (block or character) does not matter - you just care that this is a hard disk partition or a sound card.

  • Driver programmers, however, do care.

最后更新于