svn commit: r256704 - user/andre/mbuf_staging/kern
Andre Oppermann
andre at FreeBSD.org
Thu Oct 17 20:15:15 UTC 2013
Author: andre
Date: Thu Oct 17 20:15:14 2013
New Revision: 256704
URL: http://svnweb.freebsd.org/changeset/base/256704
Log:
Actually move m_last() to kern/uipc_mbuf.c.
Modified:
user/andre/mbuf_staging/kern/uipc_mbuf.c
Modified: user/andre/mbuf_staging/kern/uipc_mbuf.c
==============================================================================
--- user/andre/mbuf_staging/kern/uipc_mbuf.c Thu Oct 17 20:14:47 2013 (r256703)
+++ user/andre/mbuf_staging/kern/uipc_mbuf.c Thu Oct 17 20:15:14 2013 (r256704)
@@ -1276,6 +1276,15 @@ m_length(struct mbuf *m0, struct mbuf **
return (len);
}
+struct mbuf *
+m_last(struct mbuf *m)
+{
+
+ while (m->m_next)
+ m = m->m_next;
+ return (m);
+}
+
/*
* Defragment a mbuf chain, returning the shortest possible
* chain of mbufs and clusters. If allocation fails and
More information about the svn-src-user
mailing list