Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Aug 2005 22:19:55 +0200
From:      Andre Oppermann <andre@freebsd.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/sys mbuf.h src/sys/kern uipc_mbuf.c
Message-ID:  <43136DEB.B59F9276@freebsd.org>
References:  <200508292015.j7TKFYuW094247@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Andre Oppermann wrote:
> 
> 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.

This one is primarily for the new TCP reassembly which makes very
efficient use of mbufs.

-- 
Andre



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43136DEB.B59F9276>