Machine-translated by Google. Questions are authored in English.
Top

Discussion

In Linux a character device is one that is accessed

  • A.in fixed-size blocks, with random access to any of them
  • B.only through the network stack
  • C.exclusively by direct memory access
  • D.as a stream of bytes without addressable blocks

Answer: D

A serial port, a sensor and a sound device are all character devices; a disk or a flash partition is a block device with a buffer cache and a scheduler above it. The distinction decides which set of kernel interfaces the driver implements.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.