IOKit (the userspace part) is a framework used to enumerate and query devices available in the system. It can also be used to listen for notifications of newly added or removed devices.
Darling's IOKit is implemented on top of libudev.