Here I’d like to collect some kernel related commands used for debugging my MacBookPro…
ioreg -l
ioreg displays the I/O Kit registry. The use of the -c, -l, or -n
options cause ioreg to show the properties of objects matching the speci-
fied criteria. By default, ioreg does not show the properties of an
object.
sudo kext[un]load /System/Library/Extensions/AppleAirPort2.kext
load or unload the specified kernel extension. Use with -t to get debug
informations. (same as rmmod insmod modprobe on linux)
kexstat
shows what kernel extenstions are currently loaded (same as lsmod in linux)