'\" t .\" Title: request_percpu_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_PERCPU_IRQ" "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_percpu_irq \- allocate a percpu interrupt line .SH "SYNOPSIS" .HP \w'int\ request_percpu_irq('u .BI "int request_percpu_irq(unsigned\ int\ " "irq" ", irq_handler_t\ " "handler" ", const\ char\ *\ " "devname" ", void\ __percpu\ *\ " "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\&. .RE .PP \fIdevname\fR .RS 4 An ascii name for the claiming device .RE .PP \fIdev_id\fR .RS 4 A percpu cookie passed back to the handler function .RE .SH "DESCRIPTION" .PP This call allocates interrupt resources and enables the interrupt on the local CPU\&. If the interrupt is supposed to be enabled on other CPUs, it has to be done on each CPU using \fBenable_percpu_irq\fR\&. .PP Dev_id must be globally unique\&. It is a per\-cpu variable, and the handler gets called with the interrupted CPU\*(Aqs instance of that variable\&. .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