summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2012-11-27 20:16:01 +0000
committerandre <andre@FreeBSD.org>2012-11-27 20:16:01 +0000
commitb436e47e367c9d1f318ae7add7279a2c84cdfdb7 (patch)
tree4a1e22f2baf275da3f5f7ed08e2d7a1283e75d69
parente323c318165801764db696c4d6d6d2f58c58e41d (diff)
downloadFreeBSD-src-b436e47e367c9d1f318ae7add7279a2c84cdfdb7.zip
FreeBSD-src-b436e47e367c9d1f318ae7add7279a2c84cdfdb7.tar.gz
Update comment to prefer M_NOWAIT over M_DONTWAIT and
M_WAITOK over M_WAIT. MFC after: 1 week
-rw-r--r--sys/sys/mbuf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index 111bffe..bedbebe 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -349,8 +349,8 @@ struct mbstat {
* Flags specifying how an allocation should be made.
*
* The flag to use is as follows:
- * - M_DONTWAIT or M_NOWAIT from an interrupt handler to not block allocation.
- * - M_WAIT or M_WAITOK from wherever it is safe to block.
+ * - M_NOWAIT (M_DONTWAIT) from an interrupt handler to not block allocation.
+ * - M_WAITOK (M_WAIT) from wherever it is safe to block.
*
* M_DONTWAIT/M_NOWAIT means that we will not block the thread explicitly and
* if we cannot allocate immediately we may return NULL, whereas
OpenPOWER on IntegriCloud