3 ms·
To be fair, DriverKit runs in userspace. IOKit, its spiritual predecessor, only allowed for the use of Embedded C++.
by saagarjha 5y ago
To be fair, DriverKit runs in userspace. IOKit, its spiritual predecessor, only allowed for the use of Embedded C++.
- pjmlp 5y agoTrue, but that isn't the case for the other more modern examples. Also IO Kit is no more, unless one is running an outdated macOS installation. And talking about the past, maybe discussing about dynamic dispatch of Objective-C messsages on NeXTSTEP drivers with the previous Driver Kit, would also be quite interesting regarding "bloat".
- saagarjha 5y agoIOKit remains the only way to write kernel extensions, which are still supported but discouraged if DriverKit does the job. NeXtTSTEP using Objective-C for drivers was certainly very cute but I guess they just didn’t want to have driver makers learn the language :(
- pjmlp 5y ago> Devices supported on macOS 11 and later require DriverKit. Use IOKit in your apps and services to discover and use devices. https://developer.apple.com/documentation/iokit https://developer.apple.com/documentation/iokit Going forward not for long.