From owner-freebsd-net Wed Feb 7 13:38:30 2001 Delivered-To: freebsd-net@freebsd.org Received: from smtp02.primenet.com (smtp02.primenet.com [206.165.6.132]) by hub.freebsd.org (Postfix) with ESMTP id AEE6237B6A6; Wed, 7 Feb 2001 13:38:09 -0800 (PST) Received: (from daemon@localhost) by smtp02.primenet.com (8.9.3/8.9.3) id OAA05271; Wed, 7 Feb 2001 14:32:13 -0700 (MST) Received: from usr08.primenet.com(206.165.6.208) via SMTP by smtp02.primenet.com, id smtpdAAAOCaGMh; Wed Feb 7 14:29:51 2001 Received: (from tlambert@localhost) by usr08.primenet.com (8.8.5/8.8.5) id OAA24445; Wed, 7 Feb 2001 14:35:45 -0700 (MST) From: Terry Lambert Message-Id: <200102072135.OAA24445@usr08.primenet.com> Subject: Re: CFR: Sequential mbuf read/write extensions To: bp@butya.kz (Boris Popov) Date: Wed, 7 Feb 2001 21:35:44 +0000 (GMT) Cc: freebsd-arch@FreeBSD.ORG, freebsd-net@FreeBSD.ORG In-Reply-To: from "Boris Popov" at Feb 06, 2001 05:50:52 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Before starting import process for smbfs, I would like to > introduce new API which greatly simplifies process of packaging data into > mbufs and fetching it back (in fact, similar API already presented in the > tree, but it is private to the netncp code and it will be really nice to > share it). [ ... ] Please include the ability to determine the length of the current contents (as a marcro?) so that buffers can be padded, as necessary, since some hardware and some protocols require this. Also consider protecting the structure with a mutex, at least in kernel space (this would make the macro harder to write, which is why I put it into a parenthetical, question-marjed statement). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message