Skip to content

Instantly share code, notes, and snippets.

View liamja's full-sized avatar
💾

Liam Anderson liamja

💾
View GitHub Profile
@liamja
liamja / logKextManager.m
Last active December 24, 2015 21:38 — forked from anonymous/OSReturnAsString.c
Log the return value of the Kext Manager in a human-readable form.
- (void)logKextManager:(OSReturn)osr
{
switch (osr) {
case kOSMetaClassDuplicateClass:
NSLog(@"A duplicate Libkern C++ classname was encountered during kext loading.");
break;
case kOSMetaClassHasInstances:
NSLog(@"A kext cannot be unloaded because there are instances derived from Libkern C++ classes that it defines.");
break;
case kOSMetaClassInstNoSuper: