Re: How to protect syscalls against bottom half ints?

Andi Kleen (ak@muc.de)
21 Apr 1998 16:49:11 +0200


Matthias Welwarsky <matze@stud.fbi.fh-darmstadt.de> writes:

> Hi there.
>
> Is there a way to protect a syscall against beeing interrupted by a
> bottom half? Other than cli/sti? I donīt need to be protected against
> hardware ints, just don't want to have net_bh and timer_bh and tqueue_bh
> messing around with my data structures for a short time. However, I
> generally dislike to mask irqs if it's not *really* needed.

start_bh_atomic();
...
end_bh_atomic();

-Andi

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