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)
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to