diff options
author | ru <ru@FreeBSD.org> | 2008-03-25 09:39:02 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2008-03-25 09:39:02 +0000 |
commit | 3b1bf8c2e9222b7d27e8b9084e637a84005de7ba (patch) | |
tree | cf0376c9359f2d1ca6e4e8e4ad4a4f722dba61a7 /share/man/man9/mbuf.9 | |
parent | 0655a583e2ccba8b534e710284a730a0d6af1375 (diff) | |
download | FreeBSD-src-3b1bf8c2e9222b7d27e8b9084e637a84005de7ba.zip FreeBSD-src-3b1bf8c2e9222b7d27e8b9084e637a84005de7ba.tar.gz |
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.
Diffstat (limited to 'share/man/man9/mbuf.9')
-rw-r--r-- | share/man/man9/mbuf.9 | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/share/man/man9/mbuf.9 b/share/man/man9/mbuf.9 index 04349b4..8454b64 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. |