-/*
- * Get more mbufs; called from MGET macro if mfree list is empty.
- * Must be called at splimp.
- */
-/*ARGSUSED*/
-struct mbuf *
-m_more(canwait, type)
- int canwait, type;
-{
- register struct mbuf *m;
-
- while (m_expand(canwait) == 0) {
- if (canwait == M_WAIT) {
- mbstat.m_wait++;
- m_want++;
- sleep((caddr_t)&mfree, PZERO - 1);
- if (mfree)
- break;
- } else {
- mbstat.m_drops++;
- return (NULL);
- }
- }
-#define m_more(x,y) (panic("m_more"), (struct mbuf *)0)
- MGET(m, canwait, type);
-#undef m_more
- return (m);
-}
-