aboutsummaryrefslogtreecommitdiff
path: root/share/man/man9/mbuf.9
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2008-03-25 09:39:02 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2008-03-25 09:39:02 +0000
commitea26d587291046c59102b34124187e7f602ee07d (patch)
treecf0376c9359f2d1ca6e4e8e4ad4a4f722dba61a7 /share/man/man9/mbuf.9
parentb2798e25738fc58f40da5f2fe18186b8efc3c2c6 (diff)
downloadsrc-ea26d587291046c59102b34124187e7f602ee07d.tar.gz
src-ea26d587291046c59102b34124187e7f602ee07d.zip
Replaced the misleading uses of a historical artefact M_TRYWAIT with M_WAIT.
Removed dead code that assumed that M_TRYWAIT can return NULL; it's not true since the advent of MBUMA. Reviewed by: arch There are ongoing disputes as to whether we want to switch to directly using UMA flags M_WAITOK/M_NOWAIT for mbuf(9) allocation.
Notes
Notes: svn path=/head/; revision=177599
Diffstat (limited to 'share/man/man9/mbuf.9')
-rw-r--r--share/man/man9/mbuf.918
1 files changed, 4 insertions, 14 deletions
diff --git a/share/man/man9/mbuf.9 b/share/man/man9/mbuf.9
index 04349b4fed63..8454b6475739 100644
--- a/share/man/man9/mbuf.9
+++ b/share/man/man9/mbuf.9
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd February 26, 2007
+.Dd March 25, 2008
.Dt MBUF 9
.Os
.\"
@@ -356,20 +356,10 @@ on failure.
The
.Fa how
argument is to be set to
-.Dv M_TRYWAIT
+.Dv M_WAIT
or
.Dv M_DONTWAIT .
It specifies whether the caller is willing to block if necessary.
-If
-.Fa how
-is set to
-.Dv M_TRYWAIT ,
-a failed allocation will result in the caller being put
-to sleep for a designated
-kern.ipc.mbuf_wait
-.Xr ( sysctl 8
-tunable)
-number of ticks.
A number of other functions and macros related to
.Vt mbufs
have the same argument because they may
@@ -922,7 +912,7 @@ Upon success, the original chain will be freed and the new
chain will be returned.
.Fa how
should be either
-.Dv M_TRYWAIT
+.Dv M_WAIT
or
.Dv M_DONTWAIT ,
depending on the caller's preference.
@@ -940,7 +930,7 @@ The original mbuf chain is always reclaimed and the reference
count of any shared mbuf clusters is decremented.
.Fa how
should be either
-.Dv M_TRYWAIT
+.Dv M_WAIT
or
.Dv M_DONTWAIT ,
depending on the caller's preference.