'\" t .\" Title: disable_hardirq .\" 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 "DISABLE_HARDIRQ" "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" disable_hardirq \- disables an irq and waits for hardirq completion .SH "SYNOPSIS" .HP \w'bool\ disable_hardirq('u .BI "bool disable_hardirq(unsigned\ int\ " "irq" ");" .SH "ARGUMENTS" .PP \fIirq\fR .RS 4 Interrupt to disable .RE .SH "DESCRIPTION" .PP Disable the selected interrupt line\&. Enables and Disables are nested\&. This function waits for any pending hard IRQ handlers for this interrupt to complete before returning\&. If you use this function while holding a resource the hard IRQ handler may need you will deadlock\&. .PP When used to optimistically disable an interrupt from atomic context the return value must be checked\&. .SH "RETURN" .PP false if a threaded handler is active\&. .PP This function may be called \- with care \- from IRQ context\&. .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