summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-12-28 01:04:47 +0000
committerbde <bde@FreeBSD.org>1997-12-28 01:04:47 +0000
commit79c9bcac97df39be3ffff3d2ecc334c25c182e34 (patch)
tree952d83fa2ce64f9a57724ee4018893b0ba5f580b
parent485d4efb1cdd6cb9a572b52eed86ee524c708269 (diff)
downloadFreeBSD-src-79c9bcac97df39be3ffff3d2ecc334c25c182e34.zip
FreeBSD-src-79c9bcac97df39be3ffff3d2ecc334c25c182e34.tar.gz
Unspammed nested include of <sys/malloc.h>. <sys/mbuf.h> hasn't
really used any features from <sys/malloc.h> since it was "blasted from the past" in rev.1.15, and most .c files did not depend on the namespace pollution (others have been fixed). The mbuf allocation control values M_DONTWAIT and M_WAIT were just defined in terms of the malloc control values M_NOWAIT and M_WAITOK. The mbuf values are now defined directly.
-rw-r--r--sys/sys/mbuf.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index 2af8d54..19e41a8 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -31,16 +31,12 @@
* SUCH DAMAGE.
*
* @(#)mbuf.h 8.5 (Berkeley) 2/19/95
- * $Id: mbuf.h,v 1.24 1997/10/10 18:15:46 phk Exp $
+ * $Id: mbuf.h,v 1.25 1997/10/12 20:26:00 phk Exp $
*/
#ifndef _SYS_MBUF_H_
#define _SYS_MBUF_H_
-#ifndef M_WAITOK
-#include <sys/malloc.h>
-#endif
-
/*
* Mbufs are of a single size, MSIZE (machine/machparam.h), which
* includes overhead. An mbuf may add a single "mbuf cluster" of size
@@ -149,8 +145,8 @@ struct mbuf {
#define MT_OOBDATA 15 /* expedited data */
/* flags to m_get/MGET */
-#define M_DONTWAIT M_NOWAIT
-#define M_WAIT M_WAITOK
+#define M_DONTWAIT 1
+#define M_WAIT 0
/* Freelists:
*
@@ -416,7 +412,6 @@ int m_clalloc __P((int, int));
void m_copyback __P((struct mbuf *, int, int, caddr_t));
void m_copydata __P((struct mbuf *,int,int,caddr_t));
void m_freem __P((struct mbuf *));
-
#endif /* KERNEL */
#endif /* !_SYS_MBUF_H_ */
OpenPOWER on IntegriCloud