From owner-cvs-all@FreeBSD.ORG Tue Aug 30 03:05:21 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D8CD16A41F; Tue, 30 Aug 2005 03:05:21 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3A1F43D48; Tue, 30 Aug 2005 03:05:20 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received: from localhost (localhost [127.0.0.1]) by mp2.macomnet.net (8.13.3/8.13.3) with ESMTP id j7U35IEj048848; Tue, 30 Aug 2005 07:05:19 +0400 (MSD) (envelope-from maxim@macomnet.ru) Date: Tue, 30 Aug 2005 07:05:18 +0400 (MSD) From: Maxim Konovalov To: Andre Oppermann In-Reply-To: <43136DEB.B59F9276@freebsd.org> Message-ID: <20050830070415.D48618@mp2.macomnet.net> References: <200508292015.j7TKFYuW094247@repoman.freebsd.org> <43136DEB.B59F9276@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys mbuf.h src/sys/kern uipc_mbuf.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2005 03:05:21 -0000 Hi, [...] > > Add m_copymdata(struct mbuf *m, struct mbuf *n, int off, int len, > > int prep, int how). > > > > Copies the data portion of mbuf (chain) n starting from offset off > > for length len to mbuf (chain) m. Depending on prep the copied > > data will be appended or prepended. The function ensures that the > > mbuf (chain) m will be fully writeable by making real (not refcnt) > > copies of mbuf clusters. For the prepending the function returns > > a pointer to the new start of mbuf chain m and leaves as much > > leading space as possible in the new first mbuf. > > This one is primarily for the new TCP reassembly which makes very > efficient use of mbufs. Is it feasible to document all these new mbuf functions in mbuf.9? TIA. -- Maxim Konovalov