kextstat

display status of loaded kernel extensions (kexts)

kextstat [-h] [-k] [-l] [-b identifier] …

displays the status of any kexts currently loaded in the kernel.
ketxload

Index load index of the kext (used to track linkage references). Gaps in the list indicate kexts that have been unloaded.
Refs number of references to this kext by others. If nonzero, the kext cannot be unloaded.
Address address in kernel space where the kext has been loaded.
Size number of bytes of kernel memory that the kext occupies. If this is zero, the kext is a built-in part of the kernel that has a record as a kext for resolving dependencies among kexts.
Wired number of wired bytes of kernel memory that the kext occupies.
Name CFBundleIdentifier of the kext.
(Version) CFBundleVersion of the kext.
Linked Against index numbers of all other kexts that this kext has a reference to.

-b identifier
-bundle-id identifier
Display the status of only the kext with the given bundle identifier. This option trumps the -no-kernel option; if both are given and a kernel component is specified, its information is shown.
-h
-help
output a help message describing each option flag and exit with a success result, regardless of any other options on the command line.
usage: kextstat [-k] [-l] [-b bundle_id] ...
-no-kernel (-k): show only loadable kexts (omit kernel components).
-list-only (-l): print the list only, omitting the header.
-bundle-id (-b) : print info for kexts named by identifier.
-k
-no-kernel
Don't show information for built-in components of the kernel.
-l
-list-only
loaded kexts only and omit the header (useful for running output through text-analysis tools).
Index Refs Address            Size       Wired      Name (Version) <Linked   title inserted by editor 
    1   82 0xffffff7f8074c000 0x686c     0x686c     com.apple.kpi.bsd (12.4.0)
    2    6 0xffffff7f80737000 0x46c      0x46c      com.apple.kpi.dsep (12.4.0)
    3  110 0xffffff7f80756000 0x1b7ec    0x1b7ec    com.apple.kpi.iokit (12.4.0)
    4  114 0xffffff7f80742000 0x99f8     0x99f8     com.apple.kpi.libkern (12.4.0)
    5   98 0xffffff7f80738000 0x88c      0x88c      com.apple.kpi.mach (12.4.0)
    6   44 0xffffff7f80739000 0x500c     0x500c     com.apple.kpi.private (12.4.0)
    7   54 0xffffff7f8073f000 0x23cc     0x23cc     com.apple.kpi.unsupported (12.4.0)
    8    0 0xffffff7f81c50000 0x41000    0x41000    com.apple.kec.corecrypto (1.0) <7 6 5 4 3 1>
    9   20 0xffffff7f807e8000 0x9000     0x9000     com.apple.iokit.IOACPIFamily (1.4) <7 6 4 3>
   10   31 0xffffff7f808a5000 0x25000    0x25000    com.apple.iokit.IOPCIFamily (2.7.3) <7 6 5 4 3>
   11    2 0xffffff7f824a5000 0x58000    0x58000    com.apple.driver.AppleACPIPlatform (1.7) <10 9 7 6 5 4 3 1>
   12    1 0xffffff7f811ec000 0xe000     0xe000     com.apple.driver.AppleKeyStore (28.21) <7 6 5 4 3 1>
   13   11 0xffffff7f80772000 0x25000    0x25000    com.apple.iokit.IOStorageFamily (1.8) <7 6 5 4 3 1>
   14    0 0xffffff7f814d7000 0x19000    0x19000    com.apple.driver.DiskImages (345) <13 7 6 5 4 3 1>
   15    0 0xffffff7f821bf000 0x29000    0x29000    com.apple.driver.AppleIntelCPUPowerManagement (196.0.0) <7 6 5 4 3 1>
   16    0 0xffffff7f80753000 0x3000     0x3000     com.apple.security.TMSafetyNet (7) <7 6 5 4 2 1>
   17    2 0xffffff7f80847000 0x4000     0x4000     com.apple.kext.AppleMatch (1.0.0d1) <4 1>
   18    1 0xffffff7f8084b000 0x11000    0x11000    com.apple.security.sandbox (220.3) <17 7 6 5 4 3 2 1>
   19    0 0xffffff7f8085c000 0x6000     0x6000     com.apple.security.quarantine (2.1) <18 17 7 6 5 4 2 1>
   20    0 0xffffff7f82514000 0x8000     0x8000     com.apple.nke.applicationfirewall (4.0.39) <7 6 5 4 3 1>
   21    0 0xffffff7f821ba000 0x3000     0x3000     com.apple.driver.AppleIntelCPUPowerManagementClient (196.0.0) <7 6 5 4 3 1>
   22    0 0xffffff7f82479000 0x3000     0x3000     com.apple.driver.AppleAPIC (1.6) <4 3>
   23    3 0xffffff7f81416000 0x4000     0x4000     com.apple.iokit.IOSMBusFamily (1.1) <5 4 3>
   24    0 0xffffff7f82503000 0x7000     0x7000     com.apple.driver.AppleACPIEC (1.7) <23 11 9 5 4 3>
   25    0 0xffffff7f820d0000 0x4000     0x4000     com.apple.driver.AppleSMBIOS (1.9) <7 4 3>
   26    7 0xffffff7f811fa000 0x6d000    0x6d000    com.apple.iokit.IOHIDFamily (1.8.1) <12 7 6 5 4 3 2 1>
   27    0 0xffffff7f8250d000 0x4000     0x4000     com.apple.driver.AppleACPIButtons (1.7) <26 11 9 7 6 5 4 3 1>
   28    0 0xffffff7f821f4000 0x3000     0x3000     com.apple.driver.AppleHPET (1.8) <9 7 5 4 3>
   29    0 0xffffff7f820fc000 0x8000     0x8000     com.apple.driver.AppleRTC (1.5) <9 5 4 3 1>
   30    1 0xffffff7f808e0000 0x10000    0x10000    com.apple.driver.NVSMU (2.2.9) <10 5 4 3>
   31   17 0xffffff7f80ef6000 0x5c000    0x5c000    com.apple.iokit.IOUSBFamily (5.6.0) <10 7 5 4 3 1>
   32    0 0xffffff7f812ca000 0xd000     0xd000     com.apple.driver.AppleUSBOHCI (5.2.5) <31 10 5 4 3 1>
   33    0 0xffffff7f812ff000 0x18000    0x18000    com.apple.driver.AppleUSBEHCI (5.5.0) <31 10 7 5 4 3 1>
   34    5 0xffffff7f81196000 0x2b000    0x2b000    com.apple.iokit.IONetworkingFamily (3.0) <7 6 5 4 3 1>
   35    0 0xffffff7f814ba000 0x17000    0x17000    com.apple.nvenet (2.0.19) <34 30 10 9 5 4 3 1>
   36    1 0xffffff7f8244c000 0x5000     0x5000     com.apple.driver.AppleEFIRuntime (1.7) <7 6 5 4 3>
   37    0 0xffffff7f82451000 0x7000     0x7000     com.apple.driver.AppleEFINVRAM (1.7) <36 7 6 5 4 3>
   38    0 0xffffff7f820d6000 0x8000     0x8000     com.apple.driver.AppleSmartBatteryManager (161.0.0) <23 9 5 4 3 1>
   39    0 0xffffff7f811e9000 0x3000     0x3000     com.apple.iokit.IOUSBUserClient (5.5.5) <31 7 5 4 3 1>
   40    0 0xffffff7f812e4000 0x15000    0x15000    com.apple.driver.AppleUSBHub (5.5.5) <31 5 4 3 1>
   41    3 0xffffff7f816c3000 0x16000    0x16000    com.apple.iokit.IOAHCIFamily (2.3.1) <5 4 3 1>
   42    0 0xffffff7f8247e000 0x1a000    0x1a000    com.apple.driver.AppleAHCIPort (2.5.2) <41 10 5 4 3 1>
   43    2 0xffffff7f810d7000 0x73000    0x73000    com.apple.iokit.IOFireWireFamily (4.5.5) <5 4 3 1>
   44    0 0xffffff7f81532000 0x27000    0x27000    com.apple.driver.AppleFWOHCI (4.9.6) <43 10 7 6 5 4 3 1>
   45    1 0xffffff7f8170d000 0x68000    0x68000    com.apple.iokit.IO80211Family (530.4) <34 7 6 5 4 3 1>
   46    0 0xffffff7f8177c000 0x1f9000   0x1f9000   com.apple.driver.AirPort.Brcm4331 (615.20.17) <45 34 10 7 5 4 3 1>
   47    0 0xffffff7f816e9000 0x17000    0x17000    com.apple.iokit.IOAHCIBlockStorage (2.3.1) <41 13 6 5 4 3 1>
   48    6 0xffffff7f80863000 0x2b000    0x2b000    com.apple.iokit.IOSCSIArchitectureModelFamily (3.5.5) <5 4 3 1>
   49    0 0xffffff7f816dc000 0xd000     0xd000     com.apple.iokit.IOAHCISerialATAPI (2.5.1) <48 41 5 4 3 1>
   50    0 0xffffff7f81f85000 0x3000     0x3000     com.apple.driver.XsanFilter (404) <13 5 4 3 1>
   51    0 0xffffff7f81430000 0x7000     0x7000     com.apple.iokit.SCSITaskUserClient (3.5.5) <48 13 5 4 3 1>
   52    3 0xffffff7f8143b000 0xe000     0xe000     com.apple.iokit.IOCDStorageFamily (1.7.1) <13 5 4 3 1>
   53    2 0xffffff7f8144c000 0xb000     0xb000     com.apple.iokit.IODVDStorageFamily (1.7.1) <52 13 5 4 3 1>
   54    1 0xffffff7f8145a000 0xa000     0xa000     com.apple.iokit.IOBDStorageFamily (1.7) <53 52 13 5 4 3 1>
   55    0 0xffffff7f81467000 0x1a000    0x1a000    com.apple.iokit.IOSCSIMultimediaCommandsDevice (3.5.5) <54 53 52 48 13 5 4 3 1>
   56    1 0xffffff7f81283000 0x7000     0x7000     com.apple.driver.AppleUSBComposite (5.2.5) <31 4 3 1>
   57    0 0xffffff7f812dd000 0x7000     0x7000     com.apple.driver.AppleUSBMergeNub (5.5.5) <56 31 4 3 1>
   58    1 0xffffff7f811d5000 0x11000    0x11000    com.apple.iokit.IOUSBMassStorageClass (3.5.1) <48 31 13 5 4 3 1>
   59    1 0xffffff7f810b8000 0x16000    0x16000    com.apple.iokit.IOSCSIBlockCommandsDevice (3.5.5) <48 13 5 4 3 1>
   60    0 0xffffff7f8209e000 0x4000     0x4000     com.apple.driver.AppleUSBCardReader (3.1.7) <59 58 48 31 13 5 4 3 1>
   61    4 0xffffff7f8127a000 0x9000     0x9000     com.apple.iokit.IOUSBHIDDriver (5.2.5) <31 26 5 4 3 1>
   62    0 0xffffff7f821b3000 0x4000     0x4000     com.apple.driver.AppleIRController (320.15) <61 31 26 5 4 3>
   63    0 0xffffff7f81fb9000 0x4000     0x4000     com.apple.driver.AppleUSBTCKeyboard (237.1) <61 31 26 7 6 5 4 3 1>

   65    0 0xffffff7f81fc4000 0x13000    0x13000    com.apple.driver.AppleUSBMultitouch (237.3) <61 31 26 6 5 4 3 1>
   66    0 0xffffff7f81ca0000 0x9000     0x9000     com.apple.BootCache (34) <7 6 5 4 3 1>
   67    0 0xffffff7f8243d000 0x4000     0x4000     com.apple.AppleFSCompression.AppleFSCompressionTypeZlib (1.0.0d1) <6 4 3 2 1>
   68    0 0xffffff7f82443000 0x3000     0x3000     com.apple.AppleFSCompression.AppleFSCompressionTypeDataless (1.0.0d1) <7 6 4 3 2 1>

   70    0 0xffffff7f81fbf000 0x3000     0x3000     com.apple.driver.AppleUSBTCButtons (237.1) <61 31 26 7 6 5 4 3 1>
   71    4 0xffffff7f807f1000 0xd000     0xd000     com.apple.driver.AppleSMC (3.1.4d2) <9 7 5 4 3>
   72    0 0xffffff7f80800000 0x7000     0x7000     com.apple.driver.SMCMotionSensor (3.0.3d1) <71 5 4 3>

   74   14 0xffffff7f808f4000 0x38000    0x38000    com.apple.iokit.IOGraphicsFamily (2.3.7) <10 7 5 4 3>
   75    8 0xffffff7f80937000 0x12000    0x12000    com.apple.iokit.IONDRVSupport (2.3.7) <74 10 7 5 4 3>
   76    2 0xffffff7f8094b000 0x2a6000   0x2a6000   com.apple.NVDAResman (8.1.2) <75 74 10 5 4 3 1>
   77    0 0xffffff7f80bfc000 0x2d5000   0x2d5000   com.apple.nvidia.nv50hal (8.1.2) <76 10 4 3>
   78    0 0xffffff7f820bc000 0x3000     0x3000     com.apple.driver.AppleSMBusPCI (1.0.11d0) <10 5 4 3>
   79    4 0xffffff7f81485000 0xa000     0xa000     com.apple.driver.IOPlatformPluginFamily (5.3.0d51) <9 7 6 5 4 3>
   80    1 0xffffff7f8148f000 0x12000    0x12000    com.apple.driver.IOPlatformPluginLegacy (1.0.0) <79 9 7 6 5 4 3>
   81    0 0xffffff7f814a3000 0x10000    0x10000    com.apple.driver.ACPI_SMC_PlatformPlugin (1.0.0) <80 79 71 10 9 7 6 5 4 3>
   82    0 0xffffff7f821ab000 0x3000     0x3000     com.apple.driver.AppleLPC (1.6.0) <79 10 5 4 3>
   83    0 0xffffff7f81a4a000 0xce000    0xce000    com.apple.GeForce (8.1.2) <76 75 74 10 7 6 5 4 3 1>
   84    2 0xffffff7f820bf000 0xe000     0xe000     com.apple.driver.AppleSMBusController (1.0.11d0) <23 10 9 5 4 3>
   85    0 0xffffff7f82238000 0x15000    0x15000    com.apple.driver.AppleMikeyDriver (2.3.7fc4) <84 9 5 4 3 1>
   86    1 0xffffff7f815a4000 0x28000    0x28000    com.apple.iokit.AppleBluetoothHCIControllerUSBTransport (4.1.4f2) <31 10 9 7 5 4 3 1>
   87    0 0xffffff7f815cc000 0x10000    0x10000    com.apple.iokit.BroadcomBluetoothHCIControllerUSBTransport (4.1.4f2) <86 31 10 9 7 5 4 3>

   89    0 0xffffff7f81522000 0xe000     0xe000     com.apple.iokit.IOFireWireIP (2.2.5) <43 34 5 4 3 1>
   90    0 0xffffff7f82169000 0x3000     0x3000     com.apple.driver.AppleMikeyHIDDriver (122) <26 7 4 3 1>
   91    2 0xffffff7f8080a000 0x5000     0x5000     com.apple.kext.triggers (1.0) <7 6 5 4 3 1>
   92    0 0xffffff7f81cab000 0x9000     0x9000     com.apple.filesystems.autofs (3.0) <91 7 6 5 4 3 1>
   93    0 0xffffff7f82174000 0xd000     0xd000     com.apple.driver.AppleMCCSControl (1.1.11) <84 74 10 9 7 5 4 3 1>
   94    0 0xffffff7f81fda000 0x5000     0x5000     com.apple.driver.AppleUpstreamUserClient (3.5.10) <74 10 9 7 5 4 3 1>
   95    1 0xffffff7f8241d000 0x5000     0x5000     com.apple.driver.AppleBacklightExpert (1.0.4) <75 74 10 5 4 3>
   96    0 0xffffff7f82471000 0x5000     0x5000     com.apple.driver.AppleBacklight (170.2.5) <95 75 74 10 5 4 3>
   97    1 0xffffff7f82409000 0x3000     0x3000     com.apple.driver.AppleGraphicsControl (3.4.5) <75 74 10 9 7 5 4 3 1>

   99    0 0xffffff7f8240c000 0xc000     0xc000     com.apple.driver.ApplePolicyControl (3.4.5) <97 75 74 10 9 7 5 4 3 1>
  100    0 0xffffff7f81b68000 0x5000     0x5000     com.apple.Dont_Steal_Mac_OS_X (7.0.0) <71 7 4 3 1>
  101    0 0xffffff7f815df000 0xa4000    0xa4000    com.apple.iokit.IOBluetoothFamily (4.1.4f2) <31 7 5 4 3 1>
  102    0 0xffffff7f81402000 0x12000    0x12000    com.apple.iokit.IOSurface (86.0.4) <7 5 4 3 1>
  103    0 0xffffff7f811c8000 0x7000     0x7000     com.apple.iokit.IOUserEthernet (1.0.0d1) <34 6 5 4 3 1>
  104    1 0xffffff7f80f5e000 0x10f000   0x10f000   com.ni.driver.nipalk (2.7.0) <31 10 5 4 3>
  105    2 0xffffff7f82229000 0xc000     0xc000     com.apple.iokit.IOHDAFamily (2.3.7fc4) <5 4 3 1>
  106    1 0xffffff7f8225f000 0x16000    0x16000    com.apple.driver.AppleHDAController (2.3.7fc4) <105 74 10 6 5 4 3 1>
  107    0 0xffffff7f820b4000 0x5000     0x5000     com.apple.driver.AppleSMCLMU (2.0.3d0) <74 71 5 4 3>
  108    2 0xffffff7f81cb6000 0x7000     0x7000     com.apple.kext.OSvKernDSPLib (1.6) <5 4>
  109    3 0xffffff7f81cbd000 0x32000    0x32000    com.apple.iokit.IOAudioFamily (1.8.9fc11) <108 5 4 3 1>
  110    1 0xffffff7f82275000 0xb9000    0xb9000    com.apple.driver.DspFuncLib (2.3.7fc4) <109 108 6 5 4 3 1>
  111    0 0xffffff7f82337000 0x7d000    0x7d000    com.apple.driver.AppleHDA (2.3.7fc4) <110 109 106 105 75 74 6 5 4 3 1>


  114    0 0xffffff7f823f1000 0x10000    0x10000    com.apple.driver.AGPM (100.12.87) <79 75 74 10 5 4 3>
  115    1 0xffffff7f8141f000 0xe000     0xe000     com.apple.iokit.IOSerialFamily (10.0.6) <7 6 5 4 3 1>
  116    0 0xffffff7f81590000 0xa000     0xa000     com.apple.iokit.IOBluetoothSerialManager (4.1.4f2) <115 7 5 4 3 1>
  117    0 0xffffff7f821eb000 0x5000     0x5000     com.apple.driver.AppleHWSensor (1.9.5d0) <5 4 3>
  118    0 0xffffff7f81cf7000 0x5000     0x5000     com.apple.driver.AudioAUUC (1.60) <109 74 10 9 7 5 4 3 1>
  119    0 0xffffff7f81076000 0x12000    0x12000    com.ni.driver.NiViPciK (5.1.1) <104 5 4 3 1>
  120    7 0xffffff7f82531000 0x45000    0x45000    com.apple.iokit.AppleProfileFamily (119) <10 7 6 5 4 3 1>
  121    0 0xffffff7f82576000 0x7000     0x7000     com.apple.driver.AppleIntelProfile (119) <120 6 4 3>
  122    0 0xffffff7f8257d000 0x4000     0x4000     com.apple.driver.AppleProfileCallstackAction (119) <120 6 5 4 3 1>
  123    0 0xffffff7f82581000 0x3000     0x3000     com.apple.driver.AppleProfileKEventAction (119) <120 4 3 1>
  124    0 0xffffff7f82584000 0x4000     0x4000     com.apple.driver.AppleProfileReadCounterAction (119) <120 6 4 3>
  125    0 0xffffff7f82588000 0x4000     0x4000     com.apple.driver.AppleProfileRegisterStateAction (119) <120 4 3 1>
  126    0 0xffffff7f8258c000 0x4000     0x4000     com.apple.driver.AppleProfileThreadInfoAction (119) <120 6 4 3 1>
  127    0 0xffffff7f82590000 0x4000     0x4000     com.apple.driver.AppleProfileTimestampAction (119) <120 5 4 3 1>
  128    0 0xffffff7f82594000 0x33000    0x33000    com.apple.filesystems.smbfs (1.8.4) <91 7 6 5 4 3 1>



kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}'                      
com.ni.driver.nipalk (2.7.0)
com.ni.driver.NiViPciK (5.1.1)
National Instruments LabView extensions
exits with a status of 0 on success and with a nonzero status if an error occurs.


kextload

load kernel extensions (kexts) into the kernel

kextload [options] [--] [kext]

Explicitly load kernel extensions (kexts)
kexts installed under /System/ with OSBundleAllowUserLoad = true may be loaded by non-root users.

N.B. log options are specified with a single -.

-b
-bundle-id identifier
the highest and last specified CFBundleVersion with the given identifier is used
-d
-dependency kext
Add (sic) kext and its plugins to the set of known kexts for resolving dependencies.
For adding a single kext from a directory.
-r
-repository directory
adds to the set of known kexts for resolving dependencies
Not recursive.
-v
-verbose [0-6 | 0x####]
a level from 0-6, or a bitmask of flags
decimal levels 1-6 generally have little effect, Use kextutil(8) for verbose
-- End of options.
-q, -quiet Quiet, not even error messages
-h, -help  
kext The pathname of a kext bundle to load.
The kext's plugins are available for dependency resolution.
Kexts can be specified by CFBundleIdentifier with -bundle-id.

Examples

Using a kext bundle name;
kextload TabletDriver.kext
Using CFBundleIdentifier:
kextload -bundle-id com.mycompany.driver.TabletDriver

With no additional options kextload looks in the extensions directories (/System/Library/Extensions/ and /Library/Extensions/) for a kext with the given CFBundleIdentifier.

Adding repository directories with -repository or individual kexts with -dependency expands the set of kexts that kextload looks among for dependency resolution and for loading by bundle identifier:

kextload -repository /Applications/MyApp.app/Contents/Resources TabletDriver.kext

kextutil(8); all developer-related options are forwarded a load request to kextd(8), which performs all communication with the kernel.

FILES

/System/Library/Extensions/ standard system repository of kernel extensions
/Library/Extensions/ standard repository of non Apple kernel extensions

DIAGNOSTICS

kextload exits with a zero status if all kexts specified load successfully (or are already loaded). If any kext fails to load, kextload prints an error message for that kext, continues trying to load any remaining kexts, then exits with a nonzero status. For a kext to be loadable, it must be valid, authenticated, and all dependencies of the kext must be available and load- able. A valid kext has a well formed bundle, info dictionary, and an executable built for the running kernel's architec- ture. An authentic kext's component files, not including plugins, are owned by root:wheel, with permissions nonwritable by group and other. If your kext fails to load, try using kextutil(8) to examine the kext for problems.

SEE

kextcache(8), kextd(8), kextstat(8), kextunload(8), kextutil(8), kext_logging(8)

C functions for loading kexts: KextManagerLoadKextWithIdentifier() and KextManagerLoadKextWithURL(), which are described in Apple's developer documentation.
kextcache, kextd, kextload, kextunload, kextutil