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

Discussion

The major number of a Linux device identifies

  • A.the driver that handles it
  • B.the particular instance among several identical devices
  • C.the permissions with which it may be opened
  • D.the bus on which the device is attached

Answer: A

The kernel uses it to route an open on the special file to the right driver, and the minor number then tells the driver which of its devices is meant. Both appear in the listing of a device node in place of the file size.

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

Post your comment

Please log in or register to post a comment.