From owner-freebsd-hackers Thu Dec 19 11:32:08 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA06547 for hackers-outgoing; Thu, 19 Dec 1996 11:32:08 -0800 (PST) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id LAA06496 for ; Thu, 19 Dec 1996 11:31:59 -0800 (PST) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.8.2/8.8.2) with SMTP id LAA25060; Thu, 19 Dec 1996 11:15:28 -0800 (PST) Message-ID: <32B9941B.3F54BC7E@whistle.com> Date: Thu, 19 Dec 1996 11:14:35 -0800 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: Tony Holmes CC: FreeBSD hackers list Subject: Re: Question about mbufs References: <199612191607.LAA00511@bitter.zeus.leitch.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Tony Holmes wrote: > > Hello, > > I am a novice to the FreeBSD kernel and as my first foray into kernel > development, I have the unfortunate task to port a driver from Linux > into FreeBSD. The driver was originally a port from DOS (ack!). > > Anyways, I'm porting a network driver/protocol and have run into a > problem with understanding mbufs and their usage. I am unclear as how > to convert a standard, linear buffer, into an mbuf chain (and vice-versa) > appropriately. > > Since what I am doing is a gross HACK and has no real advantage to readers > of this group, I would appreciate direct contact at tholmes@zeus.leitch.com > > Thanks in advance for the help. > > Tony Holmes you should get the BSD book (see the bibliography on the www page) also look at teh various utility functions in /sys/kern/uipc_mbuf.c and the macro's in /sys/sys/mbuf.h there are functions to load a linear buffer into an mbuf chain and visa versa julian