Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Feb 2006 21:00:58 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Dieter <freebsd@sopwith.solgatos.com>
Cc:        cpghost <cpghost@cordula.ws>, freebsd-questions@freebsd.org
Subject:   Re: [WISH] Linux kernel as drop-in replacement in FreeBSD?
Message-ID:  <20060208190058.GA2219@flame.pc>
In-Reply-To: <200602081829.SAA13412@sopwith.solgatos.com>
References:  <20060208065405.GA11496@epia2.farid-hajji.net> <200602081829.SAA13412@sopwith.solgatos.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2006-02-08 10:29, Dieter <freebsd@sopwith.solgatos.com> wrote:
>>>> since Linux' support for some hardware is better than FreeBSD's, it
>>>> would be nice to have an *optional* way of running a FreeBSD system
>>>> (userland, including all third party programs) on top of the Linux
>>>> kernel.
>>>
>>> I'd prefer to have a way to use a Linux device driver with a BSD
>>> kernel.
>>
>> Of course, but if I understand drivers correctly, that would be
>> nearly impossible... unless the interface between linux device
>> drivers and the rest of the linux kernel consisted of a well defined
>> API (perhaps it does, I don't know). Basically, a driver can access
>> ANY data structure of the kernel, and that's why it's not trivial to
>> combine a Linux driver with the FreeBSD kernel.
>
> If the driver is loaded with "modprobe", wouldn't that have a well
> defined API?

Only as far as loading & unloading is concerned.  Once a driver gets
loaded, even before module_load() finishes some times, the driver has
full access to the guts of the kernel and can wreak havoc all over the
place without any serious problem :)

- Giorgos




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