The IOKit documentation from Apple truly sucks. It pretty much just lists the functions with no explanation of how to use them and what the various constants are.
I’m trying to use IORegistryCreateIterator to get a list of all connected devices and display some information about them.