Messages in this thread | | | Subject | Re: Regarding Multi Processes | Date | Wed, 15 Sep 1999 14:09:59 +0100 (BST) | From | Alan Cox <> |
| |
> I'm writing driver code for the card, which is having four > ethernet contollers.We attached IRQ to each device. > When interrupt is rised,one of two different processes to be called > depending on the contents of the INTERRUPT CAUSE > REGISTER.Linux is new to me.So, can I know how can I create two > processes(Is there any documentation for kernel threads)
You don't normally want to use threads for processing unless there is a high overhead in the processing work. Linux is really designed to do the work on the IRQ while the cache is still hot with the data you just acquired.
If the processing isnt a tiny period you'd probably use a bottom half - The network layer for example grabs and queues packets on interrupt and processes them on the bh.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |