summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rhodes <trhodes@FreeBSD.org>2003-02-24 05:59:12 +0000
committerTom Rhodes <trhodes@FreeBSD.org>2003-02-24 05:59:12 +0000
commitc65b53c5bc5a71b138f7b5422ee96895f1a388a6 (patch)
tree14d4a211a6c7464dc01f27860c8d811af5354b84
parentfd1bfb80562bbe304978f3a8530c2b3542763ff3 (diff)
Notes
-rw-r--r--share/man/man9/mbuf.914
1 files changed, 11 insertions, 3 deletions
diff --git a/share/man/man9/mbuf.9 b/share/man/man9/mbuf.9
index 4cf163f53d84..b10e6ea73a7c 100644
--- a/share/man/man9/mbuf.9
+++ b/share/man/man9/mbuf.9
@@ -278,14 +278,14 @@ on failure.
The
.Fa how
argument is to be set to
-.Dv 0
+.Dv M_TRYWAIT
or
-.Dv M_NOWAIT .
+.Dv M_DONTWAIT .
It specifies whether the caller is willing to block if necessary.
If
.Fa how
is set to
-.Dv 0 ,
+.Dv M_TRYWAIT ,
a failed allocation will result in the caller being put
to sleep for a designated
kern.ipc.mbuf_wait
@@ -295,6 +295,14 @@ number of ticks.
A number of other mbuf-related
functions and macros have the same argument because they may
at some point need to allocate new mbufs.
+.Pp
+Programmers should be careful not to confuse the mbuf allocation flag
+.Dv M_DONTWAIT
+with the
+.Xr malloc 9
+allocation flag,
+.Dv M_NOWAIT .
+They are not the same.
.It Fn MGETHDR mbuf how type
Allocate an mbuf and initialize it to contain a packet header
and internal data.