Date: Thu, 19 Dec 1996 11:14:35 -0800 From: Julian Elischer <julian@whistle.com> To: Tony Holmes <tholmes@zeus.leitch.com> Cc: FreeBSD hackers list <FreeBSD-hackers@freebsd.org> Subject: Re: Question about mbufs Message-ID: <32B9941B.3F54BC7E@whistle.com> References: <199612191607.LAA00511@bitter.zeus.leitch.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?32B9941B.3F54BC7E>