]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
docs: Add request_irq() documentation
authorJonathan Corbet <corbet@lwn.net>
Fri, 4 Oct 2019 16:39:55 +0000 (10:39 -0600)
committerJonathan Corbet <corbet@lwn.net>
Mon, 18 Nov 2019 19:40:59 +0000 (12:40 -0700)
While checking the results of the :c:func: removal, I noticed that there
was no documentation for request_irq(), and request_threaded_irq() was not
mentioned at all.  Add a kerneldoc comment for request_irq() and add
request_threaded_irq() to the list of functions.

Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/core-api/genericirq.rst
include/linux/interrupt.h

index 2e6c99e3ce3b5062249452ee121b1fb0fadf7c1d..8f06d885c31071927a51706eeef2aea4b7a533c1 100644 (file)
@@ -127,6 +127,8 @@ The high-level Driver API consists of following functions:
 
 -  request_irq()
 
+-  request_threaded_irq()
+
 -  free_irq()
 
 -  disable_irq()
index 89fc59dab57d2605edc21a96a478e79d84de2c17..ba873ec7e09dd6efd35be7df19f572fe13bd8bcd 100644 (file)
@@ -140,6 +140,19 @@ request_threaded_irq(unsigned int irq, irq_handler_t handler,
                     irq_handler_t thread_fn,
                     unsigned long flags, const char *name, void *dev);
 
+/**
+ * request_irq - Add a handler for an interrupt line
+ * @irq:       The interrupt line to allocate
+ * @handler:   Function to be called when the IRQ occurs.
+ *             Primary handler for threaded interrupts
+ *             If NULL, the default primary handler is installed
+ * @flags:     Handling flags
+ * @name:      Name of the device generating this interrupt
+ * @dev:       A cookie passed to the handler function
+ *
+ * This call allocates an interrupt and establishes a handler; see
+ * the documentation for request_threaded_irq() for details.
+ */
 static inline int __must_check
 request_irq(unsigned int irq, irq_handler_t handler, unsigned long flags,
            const char *name, void *dev)