Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Change first argument of m_copydata() back to "struct mb...
details: https://anonhg.NetBSD.org/src/rev/7bdbe5f34782
branches: trunk
changeset: 581558:7bdbe5f34782
user: tron <tron%NetBSD.org@localhost>
date: Thu Jun 02 15:19:28 2005 +0000
description:
Change first argument of m_copydata() back to "struct mbuf *" because
m_copydata() might eventually modify the "mbuf" structure to support
lazy mbuf mapping as pointed out by YAMAMOTO Takashi on "tech-net".
diffstat:
sys/kern/uipc_mbuf.c | 4 ++--
sys/sys/mbuf.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 3cd88f5650ec -r 7bdbe5f34782 sys/kern/uipc_mbuf.c
--- a/sys/kern/uipc_mbuf.c Thu Jun 02 14:56:58 2005 +0000
+++ b/sys/kern/uipc_mbuf.c Thu Jun 02 15:19:28 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_mbuf.c,v 1.96 2005/06/02 12:58:16 tron Exp $ */
+/* $NetBSD: uipc_mbuf.c,v 1.97 2005/06/02 15:19:28 tron Exp $ */
/*-
* Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
@@ -668,7 +668,7 @@
* continuing for "len" bytes, into the indicated buffer.
*/
void
-m_copydata(const struct mbuf *m, int off, int len, void *vp)
+m_copydata(struct mbuf *m, int off, int len, void *vp)
{
unsigned count;
caddr_t cp = vp;
diff -r 3cd88f5650ec -r 7bdbe5f34782 sys/sys/mbuf.h
--- a/sys/sys/mbuf.h Thu Jun 02 14:56:58 2005 +0000
+++ b/sys/sys/mbuf.h Thu Jun 02 15:19:28 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mbuf.h,v 1.109 2005/06/02 10:34:59 tron Exp $ */
+/* $NetBSD: mbuf.h,v 1.110 2005/06/02 15:19:28 tron Exp $ */
/*-
* Copyright (c) 1996, 1997, 1999, 2001 The NetBSD Foundation, Inc.
@@ -833,7 +833,7 @@
void m_copyback(struct mbuf *, int, int, const void *);
struct mbuf *m_copyback_cow(struct mbuf *, int, int, const void *, int);
int m_makewritable(struct mbuf **, int, int, int);
-void m_copydata(const struct mbuf *, int, int, void *);
+void m_copydata(struct mbuf *, int, int, void *);
void m_freem(struct mbuf *);
void m_reclaim(void *, int);
void mbinit(void);
Home |
Main Index |
Thread Index |
Old Index