Subject: Re: CVS commit: src/sys
To: None <tron@netbsd.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-net
Date: 06/02/2005 22:29:34
> Module Name:	src
> Committed By:	tron
> Date:		Thu Jun  2 10:34:59 UTC 2005
> 
> Modified Files:
> 	src/sys/kern: uipc_mbuf.c
> 	src/sys/sys: mbuf.h
> 
> Log Message:
> Change the first argument of m_copydata() to "const struct mbuf *" (which
> doesn't require any implementation changes). This will allow us to get
> rid off a lot of nasty type casts.

please don't.
in general, constness of a structure is not the same as
logical constness of the data described by it.
i'm working on lazy mbuf mapping and it sometimes modify
mbufs in m_copydata.

YAMAMOTO Takashi