lkml.org 
[lkml]   [1996]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectheader files, sys/stream.h, sys/mbuf.h...
>>>>> "John" == John Brosnan <johnbros@iol.ie> writes:

John> Hi, I'm porting a device driver from SunOS to Redhat Linux,
John> the driver build requires the following header files:

John> sys/stream.h sys/mbuf.h sys/kmem_alloc.h

John> The above files do not seem to exist on Linux,
Yes, Linux doesn't have either streams or mbufs (this is a feature not a bug).
"kmem_alloc" -> <linux/kmalloc.h>

John> any suggestions/ideas ?

Your driver seams to be network related. You will have to rewrite the parts
that use mbufs to use sk_buffs instead (<linux/skbuff.h>). This shouldn't
be too hard and you can look at how other drivers handle skbs.

About the streams part, it depends what is it used for in the SunOS driver.
Only if you give the list more information about what it should do can we
point you to the equivalent mechnisms in Linux.

regards,
./Pedro.

\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.081 / U:0.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site