Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Change comment, to clearly say that m_...



details:   https://anonhg.NetBSD.org/src/rev/c70d7e1cac44
branches:  trunk
changeset: 318472:c70d7e1cac44
user:      maxv <maxv%NetBSD.org@localhost>
date:      Thu Apr 26 07:46:24 2018 +0000
description:
Change comment, to clearly say that m_prepend should not be used directly.

diffstat:

 sys/kern/uipc_mbuf.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (29 lines):

diff -r 79efc32bc653 -r c70d7e1cac44 sys/kern/uipc_mbuf.c
--- a/sys/kern/uipc_mbuf.c      Thu Apr 26 07:28:21 2018 +0000
+++ b/sys/kern/uipc_mbuf.c      Thu Apr 26 07:46:24 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_mbuf.c,v 1.193 2018/04/20 06:01:59 maxv Exp $     */
+/*     $NetBSD: uipc_mbuf.c,v 1.194 2018/04/26 07:46:24 maxv Exp $     */
 
 /*
  * Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.193 2018/04/20 06:01:59 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.194 2018/04/26 07:46:24 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_mbuftrace.h"
@@ -673,9 +673,7 @@
  */
 
 /*
- * Lesser-used path for M_PREPEND:
- * allocate new mbuf to prepend to chain,
- * copy junk along.
+ * Utility function for M_PREPEND. Do *NOT* use it directly.
  */
 struct mbuf *
 m_prepend(struct mbuf *m, int len, int how)



Home | Main Index | Thread Index | Old Index