From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 15 22:38:22 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C623DE24; Sat, 15 Mar 2014 22:38:22 +0000 (UTC) Received: from mail-ee0-x22c.google.com (mail-ee0-x22c.google.com [IPv6:2a00:1450:4013:c00::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 370F3CEC; Sat, 15 Mar 2014 22:38:22 +0000 (UTC) Received: by mail-ee0-f44.google.com with SMTP id e49so2726226eek.3 for ; Sat, 15 Mar 2014 15:38:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=svQ2khNl6/DTNhSTQ7iMBhDyJszxZEdKyEhixrUQRng=; b=MQYN51vLJZ5KTmUZuM0vs0VpLOz/VFl3kPiBqQk788A/9yqpnl3L+W7gAR9KTo8mlS cgmQacFIxfPeyq1lfZA7WU/2CgA6tKMPTfGnpuoNJSXHYWG/QdBIo0aQ1y8OMH60BKXG XXbPPUqjr0eYrwRXTqiKkQmWLH6oC/OtPScj2t6ChYGQFJjIcFF9a6HDulQLuwQpuNfr drfbgr73dBu86lv3ksLYHxW519ZnpXKD8K6jBqlQ+6Al1R6YyyE4/AVtBZ+gP6exOZjD KgTWaULsn4WxiadOR/XFYGHtzLaqp+FzEn4C8jq5TdnQ6QAnOsUFJFnXDoTPEctGypp/ GrLQ== X-Received: by 10.15.102.74 with SMTP id bq50mr15940395eeb.21.1394923100720; Sat, 15 Mar 2014 15:38:20 -0700 (PDT) Received: from [192.168.2.30] ([2.176.141.45]) by mx.google.com with ESMTPSA id t4sm15445967eeb.29.2014.03.15.15.38.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 15 Mar 2014 15:38:20 -0700 (PDT) Message-ID: <5324D669.804@gmail.com> Date: Sun, 16 Mar 2014 03:08:33 +0430 From: Hooman Fazaeli User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: Rui Paulo Subject: Re: mbuf question References: <53230214.7010501@gmail.com> <532405B7.2020007@gmail.com> <96659837-1FDC-421D-A339-87104A0075C7@FreeBSD.org> In-Reply-To: <96659837-1FDC-421D-A339-87104A0075C7@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Mar 2014 22:38:22 -0000 On 3/15/2014 9:09 PM, Rui Paulo wrote: > On 15 Mar 2014, at 00:48, Hooman Fazaeli wrote: >> What about the area started at (m->m_ext + 1) whose size is (MHLEN - sizeof(struct m_ext))? >> Is there any known uses of this area in the stack? > I'm not sure what you mean by m_ext + 1, but what are you trying to do? If you need to tag an mbuf, use mbuf tags. > > -- > Rui Paulo (m->m_ext+ 1) points to the (unused?) area in m->m_dat.MHright after the space occupied by m_ext. I am well aware of mbuf tags. I was just thinking toavoid the overhead of m_tag allocation/de-allocation and store my little piece of data directly in mbufs. -- Best regards. Hooman Fazaeli