Search code examples
linuxmacoskerneldriverport

Should I port Linux Driver to Mac OS X OR Should I Rewrite it


I have a Linux driver that I would like to use it Mac OS X. I know that the Mac OS X is based on BSD.

Should I try to port my driver to Mac OS X or should I rewrite it in Mac OS X using I/O Kit in C++?

The linux driver is for some PCI device.


Solution

  • This is really vague since it really depends on the details of code/hardware/skill(yours) but her is my thoughts on it.

    It really depends on the quality of the existing code. If it's not really really bad I would try to port it first and then probably tweak it after I got it running. But if you think you could do a good/better job (perhaps because you are very familiar with the hardware) in a reasonable time you could write your own.