On Fri, Mar 12, 1999 at 11:28:18AM +0000, Christophe KUMSTA wrote:
> hi,
>
> I would like to trap the Interrupt at the end of Bus Master of my PCI
> card but in order to do that , I need more information about the
> rtl_request_global_irq function and his parameters ...
> definition :
>
> unsigned int rtl_request_global_irq(unsigned int irq,
> ^^^^^^^^-?? ^^^^^^^^^^-OK
>
> unsigned int (*handler)(unsigned int, struct pt_regs *));
> ^^^^^^^^^-OK((NO)SHARE) ^^^^^^^-?? ^^^^^^^-OK (
This is the 2.2 code.
The returned value of rtl_request is -1 if it fails.
The SHARE/NOSHARE parameter is going away. I'll explain why if anyone
asks. The first argument is the irq number to allow a single handler
to handle more than one irq. The second argument is the standard linux
structure that holds the registers saved during low level interrupt
handling. This is mostly good for debug -- the "pt" is for "ptrace" and
really it is stupid that Linux still passes all that around even when the
debugger is not on, but it is there for now in case we might need it.
> asm-i386/ptrace.h)
>
> -- KUMSTA Christophe
> -- <[EMAIL PROTECTED]>
> -- real-time system developper
> -- RT-Linux (Use the source luke)
> --- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> ----
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/~rtlinux/
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/