'\" t .\" Title: request_any_context_irq .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Hardware Interfaces .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "REQUEST_ANY_CONTEXT_" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Hardware Interfaces" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" request_any_context_irq \- allocate an interrupt line .SH "SYNOPSIS" .HP \w'int\ request_any_context_irq('u .BI "int request_any_context_irq(unsigned\ int\ " "irq" ", irq_handler_t\ " "handler" ", unsigned\ long\ " "flags" ", const\ char\ *\ " "name" ", void\ *\ " "dev_id" ");" .SH "ARGUMENTS" .PP \fIirq\fR .RS 4 Interrupt line to allocate .RE .PP \fIhandler\fR .RS 4 Function to be called when the IRQ occurs\&. Threaded handler for threaded interrupts\&. .RE .PP \fIflags\fR .RS 4 Interrupt type flags .RE .PP \fIname\fR .RS 4 An ascii name for the claiming device .RE .PP \fIdev_id\fR .RS 4 A cookie passed back to the handler function .RE .SH "DESCRIPTION" .PP This call allocates interrupt resources and enables the interrupt line and IRQ handling\&. It selects either a hardirq or threaded handling method depending on the context\&. .PP On failure, it returns a negative value\&. On success, it returns either IRQC_IS_HARDIRQ or IRQC_IS_NESTED\&. .SH "COPYRIGHT" .br