Linux-kernel mailing list archive 1999-37,: Re: Regarding Multi Processes

# Re: Regarding Multi Processes

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 15 Sep 1999 14:09:59 +0100 (BST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Alan Cox: "Re: [PATCH] final support for MODULE_PARAM as kernel commandline"
- Previous message: Alan Cox: "Re: High Performance I/O stuff (more)"

> 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/

- Next message: Alan Cox: "Re: [PATCH] final support for MODULE_PARAM as kernel commandline"
- Previous message: Alan Cox: "Re: High Performance I/O stuff (more)"