Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 2002 08:52:13 -0400 (EDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Peter Wemm <peter@wemm.org>
Cc:        current@FreeBSD.ORG, Richard Wenninger <richard@richardw.net>, Terry Lambert <tlambert2@mindspring.com>
Subject:   Re: UMA lock
Message-ID:  <XFMail.20020529085213.jhb@FreeBSD.org>
In-Reply-To: <20020529072020.89F16380A@overcee.wemm.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 29-May-2002 Peter Wemm wrote:
> M_NOWAIT to the mbuf m_get*, malloc*, contigmalloc*, uma_* etc means
> "you must not tsleep!".  M_WAITOK conversely means that tsleep should be
> called as needed.  Things like malloc still can return NULL even with M_WAITOK
> for non-recoverable scenarios.

No, M_WAITOK won't return NULL, it will panic first. :)

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20020529085213.jhb>