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

Discussion

Consider the following statements about the Linux driver model.

1. The major number selects the driver   2. ioremap maps a physical register block   3. A tasklet may call a sleeping function

  • A.2 and 3 only are correct
  • B.1 and 3 only are correct
  • C.1 and 2 only are correct
  • D.1, 2 and 3 are all correct statements about the model

Answer: C

Correct answer: 1 and 2 only are correct

Statements 1 and 2 are correct: the major number selects the driver and the minor identifies the device within it, and ioremap maps a physical register block into kernel virtual address space. Statement 3 is exactly what a tasklet may not do - it runs in interrupt context, and sleeping there is forbidden.

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

Post your comment

Please log in or register to post a comment.