Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OSX Create C++ Kernel Extension

I am trying to create a kext to be run on OS X 10.9. Currently, when I create the new project (in Xcode, I am given a c template with some methods I can override (cckext_start() and cckext_stop()). This is all fine and well but I would prefer to create my extension using c++.

Is this:

  1. Possible?
  2. Bad practice?

If so, how can I do it?

like image 462
735Tesla Avatar asked Nov 26 '25 12:11

735Tesla


1 Answers

Yes, it is possible. As a matter of fact, the kernel API, or KPI, is mostly written in C++. The Kernel Extension Programming Guide and I/O Kit Fundamentals should get you started.

like image 93
JustSid Avatar answered Nov 29 '25 01:11

JustSid



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!