From 83cacd16744a09598d1e7d2f5a2d534796b3df11 Mon Sep 17 00:00:00 2001 From: Andre Oppermann Date: Tue, 27 Nov 2012 20:16:01 +0000 Subject: [PATCH] Update comment to prefer M_NOWAIT over M_DONTWAIT and M_WAITOK over M_WAIT. MFC after: 1 week --- sys/sys/mbuf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index 111bffee07ed..bedbebea39aa 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