[95106] in RedHat Linux List

home help back first fref pref prev next nref lref last post

request_irq ??

daemon@ATHENA.MIT.EDU (bixj)
Thu Oct 15 04:06:14 1998

From: bixj <bixj@263.net>
To: redhat-list@redhat.com
Date: Thu, 15 Oct 1998 15:44:36 +0800
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

In Phil Cornes' book "The Linux A-Z", the declaration of request_irq is 
int request_irq(unsigned int irq, void(*handler)(int), unsigned long type, char
*name);

I am using the Redhat Linux, 2.0.34,  the declaration is not same as before.
By checking the source code,  found it is:

int request_irq(unsigned int irq, void(*hander)(int, void*, struct pt_regs*),
unsinged long irqflags, const char* devname, void* dev_id);

Maybe the type equals the irqflags.

The question is:

What the pt_regs,  dev_id represent? especially the dev_id.

I am eager for your help, thanks!



-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post