DragonFly BSD
DragonFly commits List (threaded) for 2005-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/sys/kern kern_slaballoc.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 28 Mar 2005 10:09:45 -0800 (PST)

: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.
:
:Joerg

    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.

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]