Return bits which were removed in revision 1.28.

Requested by:	imp
This commit is contained in:
Tom Rhodes 2003-02-24 05:53:27 +00:00
parent 3303c14b57
commit 1e73455ba1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111413

View File

@ -156,7 +156,26 @@ will return
rather than block.
Note that
.Dv M_NOWAIT
is defined to be 0, meaning that blocking operation is the default.
Also note that
.Dv M_NOWAIT
is required when running in an interrupt context.
.Pp
Programmers should be careful not to confuse
.Dv M_NOWAIT ,
the
.Fn malloc
flag, with
.Dv M_DONTWAIT ,
an
.Xr mbuf 9
allocation flag, which is not a valid argument to
.Fn malloc .
.It Dv M_WAITOK
Indicates that it is Ok to wait for resources. It is unconveniently
defined as 0 so care should be taken never to compare against this value
directly or try to AND it as a flag. The default operation is to block
until the memory allocation succeeds.
The
.Fn malloc ,
.Fn realloc ,