📄 rtl_free_irq.3
字号:
.\" This -*- nroff -*- file has been generated from.\" DocBook SGML with docbook-to-man on Debian GNU/Linux....\"...\" transcript compatibility for postscript use....\"...\" synopsis: .P! <file.ps>...\".de P!\\&..fl \" force out current output buffer\\!%PB\\!/showpage{}def...\" the following is from Ken Flowers -- it prevents dictionary overflows\\!/tempdict 200 dict def tempdict begin.fl \" prolog.sy cat \\$1\" bring in postscript file...\" the following line matches the tempdict above\\!end % tempdict %\\!PE\\!..sp \\$2u \" move below the image...de pF.ie \\*(f1 .ds f1 \\n(.f.el .ie \\*(f2 .ds f2 \\n(.f.el .ie \\*(f3 .ds f3 \\n(.f.el .ie \\*(f4 .ds f4 \\n(.f.el .tm ? font overflow.ft \\$1...de fP.ie !\\*(f4 \{\. ft \\*(f4. ds f4\"' br \}.el .ie !\\*(f3 \{\. ft \\*(f3. ds f3\"' br \}.el .ie !\\*(f2 \{\. ft \\*(f2. ds f2\"' br \}.el .ie !\\*(f1 \{\. ft \\*(f1. ds f1\"' br \}.el .tm ? font underflow...ds f1\".ds f2\".ds f3\".ds f4\"'\" t .ta 8n 16n 24n 32n 40n 48n 56n 64n 72n .TH "rtl_free_irq" "3" .SH "NAME" rtl_free_irq, rtl_request_irqrtl_request_irq \(em install and remove realtime interrupt handlers .SH "SYNOPSIS" .PP .nf .ta 8n 16n 24n 32n 40n 48n 56n 64n 72n #include <rtl_core.h> int \fBrtl_request_irq\fP (unsigned int \fBirq\fR, unsigned int (*\fBhandler\fR)(unsigned int irq, struct pt_regs *regs)); int \fBrtl_free_irq\fP(unsigned int \fBirq\fR); .fi .SH "DESCRIPTION" .PP These functions are specific to Realtime Linux. The \fBsigaction\fP interface is a higher level alternative. \fBrtl_request_irq\fP registers the function \fBhandler\fR as the interrupt handler for IRQ level \fBirq\fR. The handler will be executed with hardware interrupts disabled. .PP Note: The interrupt will be disabled during the handler execution. If it is necessary to receive further interrupts from this device, you must reenable the interrupt line with the \fBrtl_hard_enable_irq(3)\fP function. It is almost always a terrible mistake to call \fBrtl_allow_irqs\fP in an interrupt handler. .PP \fBrtl_free_irq\fP removes the interrupt handler for IRQ level \fBirq\fR. .SH "RETURN VALUE" .PP All functions return 0 on success and a negative error code on error. .SH "ERRORS" .IP "-EBUSY" 10 \fBrtl_request_irq\fP: Interrupt handler is already installed for this interrupt level. .IP "-EINVAL" 10 \fBrtl_free_irq\fP: There is no handler currently installed for this interrupt level .SH "AUTHOR" .PP Michael Barabanov (\fIbaraban@fsmlabs.com (link to URL mailto:baraban@fsmlabs.com) \fR) .SH "SEE ALSO" \fIsigaction(2) (link to URL sigaction.2.html) \fR, \fIrtl_hard_enable_irq(3) (link to URL rtl_hard_enable_irq.3.html) \fR, \fIrtl_hard_disable_irq(3) (link to URL rtl_hard_disable_irq.3.html) \fR .PP \(co2001 FSMLabs Inc. .PP All rights reserved. ...\" created by instant / docbook-to-man, Thu 26 Jul 2001, 11:20
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -