Subject: Interrupthandler with loadable kernel module
To: None <amiga-dev@NetBSD.ORG>
From: Andreas Johansson <email@example.com>
Date: 03/14/1995 21:08:51
I am writing a network driver for a homebuilt network card (using IDE).
I have it running as a loopback interface now, using no interrupts, and
it works fine. But now I need to add an interrupt handler so the driver
knows when to read data send by the other computer.
I have looked into machdep.c in arch/amiga/amiga, but it seems all
level 2 interrupt-handlers are just put in a row at compile time. Now
if I want to add my interrupt handler when i insmod it, just how am I
supposed to go about? Do I have to write my own handler-registrator to
make it run comfortably or is there something I have missed?
Also, I suppose there is no way to safely remove a networkdriver
(I haven't seen any such function in in.c, so I wrote the simplest
thing myself which just removes my driver from the linked list).
I have seen some messages from the kernel telling me it can't unlink
some address or something, so I wonder what more I should do to make
it work better.
: E-mail: firstname.lastname@example.org Amiga 4000 is it! :
: S-mail: Andreas Johansson, Karhusvagen 5 6:618, 977 54 Lulea, SWEDEN :
: There are two groups of people I'll _never_ understand: :
: math-professors and women :