Re: Purpose of [start|end]_bh_atomic?

Krzysztof G. Baranowski (kgb@manjak.knm.org.pl)
Mon, 15 Feb 1999 21:17:54 +0100 (EET)


[ Cc'ed to Richard, please treat this like lkml faq submission ]

On Mon, 15 Feb 1999, Regis Duchesne wrote:
> What is the exact purpose of start_bh_atomic() and end_bh_atomic()?
To protect your code from being interrupted by a bottom half handler.
Is it mostly used in syscalls and functions called from userspace
and is better than cli/sti pair, because most of the time there is no
need to mask interrupts on hardware level.

Cheers,
Kris

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