I’m using some of the functions from IOKit/kext/KextManager.h to programmatically load kernel a extension, and I’m encountering new error values. For example:
OSReturn osr = KextManagerLoadKextWithIdentifier(...);
// => -603947004
How can I translate this value to one of the human-readable definitions found in libkern/OSReturn.h?
Per @pmjordan’s comment, I just created a simple mapping function using definitions from
OSReturn.h.