cvs commit: src/sys/kern kern_slaballoc.c

Matthew Dillon dillon at
Mon Mar 28 10:10:03 PST 2005

:I should sleep more. Matt, what do you think about truely separating the
:M_NULLOK and M_RNOWAIT flags? Currently M_RNOWAIT implies M_NULLOK and
:since the flags are created by sys/malloc.h anyway, we could
:include M_NULLOK in the M_RNOWAIT cases.

    I think this is a legacy from the original FreeBSD code.. I 
    created M_RNOWAIT as an internal flag because M_NOWAIT is 
    no longer a single bit.

    I agree, we should be able to separate the functionality and simply
    add M_NULLOK to the M_INTNOWAIT and M_SYSNOWAIT.  The only M_NULLOK
    would mean that NULL is an ok return value.

					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>

More information about the Commits mailing list