[3199] in RedHat Linux List
RE: header files, sys/stream.h, mbuf.h ?
daemon@ATHENA.MIT.EDU (Al Longyear)
Thu Nov 7 13:55:11 1996
From: Al Longyear <longyear@sii.com>
To: "'redhat-list@redhat.com'" <redhat-list@redhat.com>
Cc: "'johnbros@iol.ie'" <johnbros@iol.ie>
Date: Thu, 7 Nov 1996 10:20:16 -0800
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Linux does not support streams. The 'stream.h' is the header file for
streams. There is no equivalent for this.
'mbuf.h' is the header file for mbufs. This is also something that Linux
does not support. You will need to find a different method to replace
the mbufs functionality. Linux uses a skbuf structure when dealing with
network devices/sockets. Linux uses a flat structure for the buffers.
'kmem_alloc' is for allocating a buffer in the kernel data space. This
function is provided by kalloc and kvalloc.
Perhaps the easiest thing to suggest is that you look at the code for
other device drivers in the kernel and see how they are written.
>----------
>From: John Brosnan[SMTP:johnbros@iol.ie]
>Sent: Thursday, November 07, 1996 8:21 AM
>To: redhat-list@redhat.com
>Subject: header files, sys/stream.h, mbuf.h ?
>
>I'm porting a device driver from SunOS to Redhat Linux,
>the driver build requires the following header files:
>
> sys/stream.h
> sys/mbuf.h
> sys/kmem_alloc.h
>
>The above files do not seem to exist on Linux, any
>suggestions/ideas ?
>
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null