From owner-freebsd-net Thu Jul 11 16:20:22 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1799537B401 for ; Thu, 11 Jul 2002 16:20:17 -0700 (PDT) Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id B05DD43E52 for ; Thu, 11 Jul 2002 16:20:16 -0700 (PDT) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020711232016.CGLI8262.rwcrmhc52.attbi.com@InterJet.elischer.org>; Thu, 11 Jul 2002 23:20:16 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id QAA48706; Thu, 11 Jul 2002 16:11:23 -0700 (PDT) Date: Thu, 11 Jul 2002 16:11:23 -0700 (PDT) From: Julian Elischer To: Bosko Milekic Cc: Juan Francisco Rodriguez Hervella , freebsd-net@FreeBSD.ORG Subject: Re: mbuf external buffer reference counters In-Reply-To: <20020711171510.A19053@unixdaemons.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, 11 Jul 2002, Bosko Milekic wrote: > > On Thu, Jul 11, 2002 at 11:00:56PM +0200, Juan Francisco Rodriguez Hervella wrote: > > First of all, let me say that Im newbie with these topics, > > I only know a bit about mbufs, but I dont understand how > > can an application trim away the refcount if the size is > > MCLBYTES = 2040 - sizeof(refcount). > > > > Don't this limit the room which an app. can write ? > > No. It just changes it. Also, it's not the application trimming away > anything, and the size is not 2040, it's 2048. :-) > > FWIW, the application has no idea about mbufs or clusters. These are > buffers and structures only the kernel knows about. except if you are trying to use 0 copy semantics. > > > Thanks. > > > > JFRH > > -- > Bosko Milekic > bmilekic@unixdaemons.com > bmilekic@FreeBSD.org > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message