'\" t .\" Title: request_any_context_irq .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Public Functions Provided .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "REQUEST_ANY_CONTEXT_" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Public Functions Provided" .\" ----------------------------------------------------------------- .\" * 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 "AUTHORS" .PP \fBThomas Gleixner\fR <\&tglx@linutronix.de\&> .RS 4 Author. .RE .PP \fBIngo Molnar\fR <\&mingo@elte.hu\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br