[bootlin/training-materials updates] master: Mention the IRQF_ONESHOT flag (b5d8e614)

Michael Opdenacker michael.opdenacker at bootlin.com
Fri Mar 15 17:16:34 CET 2019

Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/b5d8e6146531abfceff8b1c7434d056cafc92a99


commit b5d8e6146531abfceff8b1c7434d056cafc92a99
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Fri Mar 15 17:16:34 2019 +0100

    Mention the IRQF_ONESHOT flag
    - This is good to show that IRQF_SHARED is not
      the only useful flag in drivers
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


 .../kernel-driver-development-interrupts.tex                  | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/slides/kernel-driver-development-interrupts/kernel-driver-development-interrupts.tex b/slides/kernel-driver-development-interrupts/kernel-driver-development-interrupts.tex
index e84f11a7..a78e9c44 100644
--- a/slides/kernel-driver-development-interrupts/kernel-driver-development-interrupts.tex
+++ b/slides/kernel-driver-development-interrupts/kernel-driver-development-interrupts.tex
@@ -43,18 +43,19 @@ void devm_free_irq(struct device *dev,
   \frametitle{Registering an interrupt handler 2/2}
-  Main \code{irq_flags} bit values\\
-  (can be combined, \code{0} when no flags are needed):
+  Here are the most frequent \code{irq_flags} bit values
+  in drivers (can be combined):
-     \item \ksym{IRQF_SHARED}
+     \item \ksym{IRQF_SHARED}: interrupt channel can be shared by several devices.
-        \item The interrupt channel can be shared by several
-        devices.
 	\item When an interrupt is received, all the interrupt
 	handlers registered on the same interrupt line are called.
 	\item This requires a hardware status register telling whether
         an IRQ was raised or not.
+     \item \ksym{IRQF_ONESHOT}: for use by threaded interrupts (see
+     next slides). Keeping the interrupt line disabled until the thread
+     function has run.

More information about the training-materials-updates mailing list