summaryrefslogtreecommitdiffstats
path: root/kernel/irq/manage.c
diff options
context:
space:
mode:
authorJoel Savitz <jsavitz@redhat.com>2021-07-31 01:07:40 -0400
committerThomas Gleixner <tglx@linutronix.de>2021-08-10 15:06:04 +0200
commit61377ec144574313ebfbf31685895a7b9b9b7a9a (patch)
tree8c860862d3debf54c06f61e13c547bae6bd10a20 /kernel/irq/manage.c
parent428e211641ed808b55cdc7d880a0ee349eff354b (diff)
downloadlinux-61377ec144574313ebfbf31685895a7b9b9b7a9a.tar.bz2
genirq: Clarify documentation for request_threaded_irq()
Clarify wording and document commonly used IRQF_ONESHOT flag. Signed-off-by: Joel Savitz <jsavitz@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20210731050740.444454-1-jsavitz@redhat.com
Diffstat (limited to 'kernel/irq/manage.c')
-rw-r--r--kernel/irq/manage.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index ef30b4762947..766468a2fc5a 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -2072,9 +2072,9 @@ const void *free_nmi(unsigned int irq, void *dev_id)
* request_threaded_irq - allocate an interrupt line
* @irq: Interrupt line to allocate
* @handler: Function to be called when the IRQ occurs.
- * Primary handler for threaded interrupts
- * If NULL and thread_fn != NULL the default
- * primary handler is installed
+ * Primary handler for threaded interrupts.
+ * If handler is NULL and thread_fn != NULL
+ * the default primary handler is installed.
* @thread_fn: Function called from the irq handler thread
* If NULL, no irq thread is created
* @irqflags: Interrupt type flags
@@ -2108,6 +2108,8 @@ const void *free_nmi(unsigned int irq, void *dev_id)
*
* IRQF_SHARED Interrupt is shared
* IRQF_TRIGGER_* Specify active edge(s) or level
+ * IRQF_ONESHOT Do not unmask interrupt line until
+ * thread_fn returns
*
*/
int request_threaded_irq(unsigned int irq, irq_handler_t handler,