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

Discussion

Put the steps of a platform driver's probe in order.

1. Register the device with its subsystem   2. Map the register block with ioremap   3. Read the addresses and interrupt from the device node   4. Request the interrupt

  • A.1, 3, 2, 4
  • B.3, 2, 4, 1
  • C.2, 3, 4, 1
  • D.3, 4, 2, 1

Answer: B

The node supplies the resources, they are mapped, the interrupt is requested once the handler can safely run, and the device is announced to the rest of the kernel only when it is fully ready. Registering first would expose a half-initialised device to a user.

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

Post your comment

Please log in or register to post a comment.