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

Discussion

A callback invoked from interrupt context must not

  • A.read the device's registers
  • B.write into a buffer supplied by the application
  • C.return a value to the driver
  • D.block on a kernel object or take a long time

Answer: D

Correct answer: block on a kernel object or take a long time

A callback from interrupt context runs with interrupts disabled or at high priority, and there is no task to suspend, so blocking either faults or hangs the system. It must do the minimum - copy a value, set a flag, signal a semaphore - and leave the work to a task.

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

Post your comment

Please log in or register to post a comment.