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

Discussion

A kernel function that may be called from an interrupt handler is usually distinguished by

  • A.a separate name or a from-ISR variant
  • B.returning a different data type from the ordinary version
  • C.requiring interrupts to be enabled while it runs
  • D.being available only in the cooperative version of the kernel

Answer: A

Calling the ordinary blocking version from a handler would try to block the interrupt context, which has no task to block, so kernels provide non-blocking variants and name them plainly. Mixing them up is a common and hard-to-diagnose fault.

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

Post your comment

Please log in or register to post a comment.