From owner-cvs-all@FreeBSD.ORG Mon Aug 29 20:15:34 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 9E6DB16A41F; Mon, 29 Aug 2005 20:15:34 +0000 (GMT) (envelope-from andre@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 662A243D46; Mon, 29 Aug 2005 20:15:34 +0000 (GMT) (envelope-from andre@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j7TKFYak094248; Mon, 29 Aug 2005 20:15:34 GMT (envelope-from andre@repoman.freebsd.org) Received: (from andre@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j7TKFYuW094247; Mon, 29 Aug 2005 20:15:34 GMT (envelope-from andre) Message-Id: <200508292015.j7TKFYuW094247@repoman.freebsd.org> From: Andre Oppermann Date: Mon, 29 Aug 2005 20:15:34 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: 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: Mon, 29 Aug 2005 20:15:34 -0000 andre 2005-08-29 20:15:33 UTC FreeBSD src repository Modified files: sys/sys mbuf.h sys/kern uipc_mbuf.c Log: 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. Reviewed by: glebius Revision Changes Path 1.152 +145 -0 src/sys/kern/uipc_mbuf.c 1.175 +2 -0 src/sys/sys/mbuf.h