Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jan 1999 08:41:21 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        current@FreeBSD.ORG, julian@whistle.com
Subject:   Re: kernel malloc and M_CANWAIT
Message-ID:  <199901182141.IAA14501@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>There was some talk about the fact that malloc(..M_CANWAIT)
>can now return with a failure.

You mean M_WAITOK.

>Is that true?

Of course not.  It is fundamental that malloc(..., M_WAITOK) either
succeeds or panics.  Most callers depend on this and don't check for
success.  The others are bogus.

You may be thinking of the documented but unimplemented new flag
M_ASLEEP.  It's hard to see what this does (since it is
unimplemented), but the docs say to only use it with M_NOWAIT.

Bruce

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?199901182141.IAA14501>