Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jan 2001 00:52:28 -0800
From:      "'Alfred Perlstein'" <bright@wintelcom.net>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Running Linux kernel modules.
Message-ID:  <20010112005228.S7240@fw.wintelcom.net>
In-Reply-To: <14942.32188.899333.434988@grasshopper.cs.duke.edu>; from gallatin@cs.duke.edu on Thu, Jan 11, 2001 at 11:13:14PM -0500
References:  <01C07BF3.695D3780.ggross@symark.com> <14942.32188.899333.434988@grasshopper.cs.duke.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
* Andrew Gallatin <gallatin@cs.duke.edu> [010111 20:13] wrote:
> 
>  > On Thursday, January 11, 2001 3:12 PM, Alfred Perlstein 
>  > [SMTP:bright@wintelcom.net] wrote:
>  > > * Carl Makin <carl@xena.ipaustralia.gov.au> [010111 14:52] wrote:
>  > > >
>  > > > There are a couple of linux kernel modules that I'd love to run under
>  > > > FreeBSD.  I've always assumed that I'd have to rewrite them substantially
>  > > > to make that happen.
>  > > >
>  > > > Can anyone give me some pointers on how hard it could be to port a linux
>  > > > kernel module to FreeBSD?
>  > >
>  > > Depends on how familiar you are with kernel internals, for instance
>  > > after taking a quick look at the kernel module needed to run vmware
>  > > it was pretty clear that someone with the experience and time could
>  > > have it done in under a week, about 2 weeks later some maniac ( :) )
>  > > surfaced who had done just that.
> 
> The biggest problem I've had porting linux drivers is that linux
> exports enough internals to allow drivers to distinguish between
> multiple opens of the same device.  Eg:

[snip]

> 
> Isn't this gross?  Is there a better way?

Beyond gross. :)

I've heard of many requests for this special functionality in FreeBSD,
things as you've mentioned (vmware, your driver) as well as ptys.

If you wanted to fix our interface I'd be glad to help review it and
assist if possible.

-- 
-Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
"I have the heart of a child; I keep it in a jar on my desk."


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010112005228.S7240>