Threaded Interrupt Handlers
A threaded interrupt handler is the modern, tidy version of the two-part split: you register a quick function that decides whether the interrupt was yours, and a second function the kernel runs in a real thread where sleeping, locking and allocating are all allowed. It gives you the deferred half without inventing your own queue, and it is what current drivers, including the Rust ones, use by default.
Questions this Concept answers
- Why may the thread half of a threaded handler sleep when the fast half may not?
This Concept is waiting for its first lesson!
A threaded interrupt handler is the modern, tidy version of the two-part split: you register a quick function that decides whether the interrupt was yours, and a second function the kernel runs in a real thread where sleeping, locking and allocating are all allowed. It gives you the deferred half without inventing your own queue, and it is what current drivers, including the Rust ones, use by default.
Are you a teacher? Sign in to start contributing.
Sign In