Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern MGET -> m_get



details:   https://anonhg.NetBSD.org/src/rev/f292324752ce
branches:  trunk
changeset: 790433:f292324752ce
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Oct 08 19:59:49 2013 +0000

description:
MGET -> m_get

diffstat:

 sys/kern/uipc_mbuf2.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 6792abb6af85 -r f292324752ce sys/kern/uipc_mbuf2.c
--- a/sys/kern/uipc_mbuf2.c     Tue Oct 08 19:58:25 2013 +0000
+++ b/sys/kern/uipc_mbuf2.c     Tue Oct 08 19:59:49 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_mbuf2.c,v 1.29 2011/08/08 19:10:33 dyoung Exp $   */
+/*     $NetBSD: uipc_mbuf2.c,v 1.30 2013/10/08 19:59:49 christos Exp $ */
 /*     $KAME: uipc_mbuf2.c,v 1.29 2001/02/14 13:42:10 itojun Exp $     */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf2.c,v 1.29 2011/08/08 19:10:33 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf2.c,v 1.30 2013/10/08 19:59:49 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -192,7 +192,7 @@
         * now, we need to do the hard way.  don't m_copy as there's no room
         * on both end.
         */
-       MGET(o, M_DONTWAIT, m->m_type);
+       o = m_get(M_DONTWAIT, m->m_type);
        if (o && len > MLEN) {
                MCLGET(o, M_DONTWAIT);
                if ((o->m_flags & M_EXT) == 0) {
@@ -237,9 +237,9 @@
        struct mbuf *mp;
 
        if ((flags & M_PKTHDR) != 0)
-               MGETHDR(mp, how, type);
+               mp = m_gethdr(how, type);
        else
-               MGET(mp, how, type);
+               mp = m_get(how, type);
 
        if (mp == NULL)
                return NULL;



Home | Main Index | Thread Index | Old Index