Opened 12 years ago

Closed 7 years ago

#1109 closed enhancement (invalid)

Kernel module to enable Linux drivers in Haiku

Reported by: jonas.kirilla Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: System/Kernel Version:
Keywords: Cc: kaoutsis
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

Source-level wrappers to make Linux drivers build and run.

Building Linux Device Drivers on FreeBSD: http://info.iet.unipi.it/~luigi/FreeBSD/linux_bsd_kld.html

Attachments (1)

libuks_and_jfs.diff.zip (237.9 KB) - added by kaoutsis 11 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 12 years ago by wkornewald

Milestone: R1Unscheduled

comment:2 Changed 12 years ago by kaoutsis

Cc: kaoutsis added

Changed 11 years ago by kaoutsis

Attachment: libuks_and_jfs.diff.zip added

comment:3 Changed 11 years ago by kaoutsis

Some comments and questions about libuks_and_jfs.diff.zip

the questions: a) Is it possible this kind of implementation? (making a wrapper kernel library in order to keep the driver sources untouched) And if so what rules should someone follow? b) Does it really worth the effort?

the comments: a) There are a huge number of defines, macros, and inline assembly that make the whole effort a bit difficult :-D b) there are several changes from one version of the linux kernel to another, making the effort, a moving target.

comment:4 Changed 11 years ago by axeld

Of course it's possible, it's just not at all feasible. First of all, a better source of drivers would be FreeBSD - the license is just more appealing. Also, in my experience, the code is often cleaner and better written (although often packed with less features).

The best reason, however, is what say in your comments: Linux doesn't have a stable kernel API at all. Such an effort would just be a waste of time IMO.

comment:5 in reply to:  4 Changed 11 years ago by kaoutsis

Replying to axeld:

...Such an effort would just be a waste of time IMO.

Ok, thanks for looking into this; i agree. I am relieved now :-)

comment:6 Changed 9 years ago by axeld

Owner: changed from axeld to nobody
Version: R1/pre-alpha1

comment:7 Changed 7 years ago by kallisti5

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.