diff options
author | trhodes <trhodes@FreeBSD.org> | 2003-02-24 05:53:27 +0000 |
---|---|---|
committer | trhodes <trhodes@FreeBSD.org> | 2003-02-24 05:53:27 +0000 |
commit | 078fd34f19ff211db9dfb2e8c46dc44394b77526 (patch) | |
tree | b80db7486ed0b222380846556ade77d7cff566b3 /share/man/man9/malloc.9 | |
parent | d3806508a829dfeb0d5fac145c9cfe336522d32a (diff) | |
download | FreeBSD-src-078fd34f19ff211db9dfb2e8c46dc44394b77526.zip FreeBSD-src-078fd34f19ff211db9dfb2e8c46dc44394b77526.tar.gz |
Return bits which were removed in revision 1.28.
Requested by: imp
Diffstat (limited to 'share/man/man9/malloc.9')
-rw-r--r-- | share/man/man9/malloc.9 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/share/man/man9/malloc.9 b/share/man/man9/malloc.9 index ad5ccc4..b22852c 100644 --- a/share/man/man9/malloc.9 +++ b/share/man/man9/malloc.9 @@ -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 , |