Skip to content

Commit

Permalink
Refine description in request_threaded_irq usage
Browse files Browse the repository at this point in the history
  • Loading branch information
0xff07 authored and jserv committed Apr 20, 2024
1 parent 0c3aaac commit 86b5e86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lkmpg.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1957,7 +1957,8 @@ \subsection{Threaded IRQ}

Presence of both handlers is not mandatory.
If either of them is not needed, pass the \cpp|NULL| instead.
A \cpp|NULL| top-half handler implicitly means doing nothing but waking up the bottom-half serving thread (for running the bottom-half handler); A \cpp|NULL| bottom-half handler would have the same effect as if \cpp|request_irq()| were used.
A \cpp|NULL| top-half handler implies that no action is taken except to wake up the bottom-half serving thread, which runs the bottom-half handler.
Similarly, a \cpp|NULL| bottom-half handler effectively acts as if \cpp|request_irq()| were used.
In fact, this is how \cpp|request_irq()| is implemented.

Note that passing \cpp|NULL| to both handlers is considered an error and will make registration fail.
Expand Down

0 comments on commit 86b5e86

Please sign in to comment.