Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Oct 1999 17:48:55 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Greg Lehey <grog@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/vinum vinumhdr.h
Message-ID:  <Pine.BSF.4.10.9910131735430.29159-100000@alphplex.bde.org>
In-Reply-To: <199910130316.UAA48060@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> grog        1999/10/12 20:16:56 PDT
> 
>   Modified files:
>     sys/dev/vinum        vinumhdr.h 
>   Log:
>   Modify definition of Malloc: only M_WAITOK if we're not in an
>   interrupt context.

There is no portable way to know if we're in an interrupt context.
On i386's there is the variable intr_nesting_level, but this is noty
useful for deciding betweeb M_WAITOK and M_NOWAIT at runtime since
it may not be available.

Bruce



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9910131735430.29159-100000>