svn commit: r343500 - head/sys/kern

Andriy Voskoboinyk avos at FreeBSD.org
Sun Jan 27 16:44:28 UTC 2019


Author: avos
Date: Sun Jan 27 16:44:27 2019
New Revision: 343500
URL: https://svnweb.freebsd.org/changeset/base/343500

Log:
  m_getm2: correct a comment.
  
  The comment states that function always return a top of allocated mbuf;
  however, the function actually return the overall mbuf chain top pointer.
  
  Since there are already existing users of it (via m_getm(4) macro),
  rephrase the comment and leave behavior unchanged.
  
  PR:		134335
  MFC after:	12 days

Modified:
  head/sys/kern/kern_mbuf.c

Modified: head/sys/kern/kern_mbuf.c
==============================================================================
--- head/sys/kern/kern_mbuf.c	Sun Jan 27 15:55:31 2019	(r343499)
+++ head/sys/kern/kern_mbuf.c	Sun Jan 27 16:44:27 2019	(r343500)
@@ -1031,8 +1031,7 @@ m_getjcl(int how, short type, int flags, int size)
  * Allocate a given length worth of mbufs and/or clusters (whatever fits
  * best) and return a pointer to the top of the allocated chain.  If an
  * existing mbuf chain is provided, then we will append the new chain
- * to the existing one but still return the top of the newly allocated
- * chain.
+ * to the existing one and return a pointer to the provided mbuf.
  */
 struct mbuf *
 m_getm2(struct mbuf *m, int len, int how, short type, int flags)


More information about the svn-src-all mailing list