Embedded Linux >> replacing default ethernet interrupt handler

by mcharon » Sun, 14 May 2006 11:07:10 GMT

our board has 4 etherports. i would like to replace the existing driver
for port two

with my driver or at least i would like to replace the default
interrrupt handler for

port two with my own interrupt handler.

sample code in LDD book uses alloc_netdev and register_netdev to create
and register the

driver. but i am not sure how this code can be modified so that the
driver can be associated
with ethernet port two and other ports continue to use the default

thank you in advance.

Similar Threads

1. [PATCH 502] MVME167 serial: Replace bottom half handler with task queue handler - Linux

2. de2104x: interrupts before interrupt handler is registered

3. [PATCH] USB: fix interrupt disabling for HCDs with shared interrupt handlers - Linux

4. [PATCH] USB: fix interrupt disabling for HCDs with shared interrupt handlers

5. semaphores not usable in Linux interrupt handler?

6. execution time in interrupt handler.

Hi all,

May be this is just a stupid question, but I have to ask it. :)

Is there any limitation on execution time in the interrupt handler?
In a timer interrupt, I perform some of the tasks like -
1. refreshing the watchdog timer.
2. set user clock
3. calculate process CPU usage

Is is that there is a limit on the tasks performed in the interrupt handler?

Your response highly appreciated.

Thank you.

7. Resetting system clock with interrupt handler?

8. [Q] vmalloc and interrupt handler

I'm trying to write a simple device driver using a lot of memory.
It seems that vmalloc() is not available in interrupt handler, because
it may  sleep.

So, I changed my code such that  vmalloc() is only called in driver's open function,
and interrupt handler only access the memory already allocated by vmalloc().

Then I have a question.
Does this memory area allocated by vmalloc()  have a possibility to be paged out?
If this area paged out, interrupt handler cannot access the area(because 
interrupt handler must sleep until page-in handler done.)

Please help me.
Thanks !!!