From owner-cvs-src@FreeBSD.ORG Sat Oct 6 21:42:39 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D53F916A41A; Sat, 6 Oct 2007 21:42:39 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C51B313C45B; Sat, 6 Oct 2007 21:42:39 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l96LgdXH041437; Sat, 6 Oct 2007 21:42:39 GMT (envelope-from kmacy@repoman.freebsd.org) Received: (from kmacy@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l96Lgdth041436; Sat, 6 Oct 2007 21:42:39 GMT (envelope-from kmacy) Message-Id: <200710062142.l96Lgdth041436@repoman.freebsd.org> From: Kip Macy Date: Sat, 6 Oct 2007 21:42:39 +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 kern_mbuf.c uipc_mbuf.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Oct 2007 21:42:39 -0000 kmacy 2007-10-06 21:42:39 UTC FreeBSD src repository Modified files: sys/sys mbuf.h sys/kern kern_mbuf.c uipc_mbuf.c Log: This patch adds an M_NOFREE flag which allows one to mark an mbuf as not being independently freeable. This allows one to embed an mbuf in the cluster itself. This confers the benefits of the packet zone on all cluster sizes. Embedded mbufs currently suffer from the same limitation that packet zone mbufs do in that one cannot disconnect them and pass them around independently of the cluster. It would likely be possible to eliminate this limitation in the future by adding a second reference for the mbuf itself. Approved by: re(gnn) Revision Changes Path 1.32 +1 -0 src/sys/kern/kern_mbuf.c 1.174 +11 -0 src/sys/kern/uipc_mbuf.c 1.217 +2 -1 src/sys/sys/mbuf.h