[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-kernel
Subject:    Re: start/end_bh_atomic() ?
From:       Matthias Welwarsky <matze () stud ! fbi ! fh-darmstadt ! de>
Date:       1998-05-08 9:38:22
[Download RAW message or body]

Vince Lo Faso wrote:
> 
> If we do need protection from a hardware interrupt is cli()/sti() the only
> method? or is there a better mechanism?  More specifcally, I'm concerned about
> network interrupt when an inbound packet has just arrived.
> 

Depends on what your code does. Packets coming in from any network
interface via netif_rcv() (still correct in 2.1.x?) are delivered within
a bottom half int. So, if you don't mess with data structures that the
particular hardware driver manipulates within his rx-int - and there
should be no need for this from outside the driver, start/end_bh_atomic
should be sufficient.

Gruss,
	Matthias

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic