I'm looking for a universal method to configure parameters from userspace agent to kernel since there is no Mac equivalent to windows registry where driver can directly access any key in this table using ZwQueryValueKey
command.
Therefore, I'd like to pass a dynamic list of variables through CFDictionary
.
In IOConnectCallMethod
there's a way to pass input pointer, but the question is if I can pass a CFDictionary
or CFDictionaryRef
instead of just a simple struct.
I saw that there are some IOkit commands that enable you to pass CFDictionaryRef directly, such as IOServiceGetMatchingService
but these are not intended for the driver module but for the entity that manages the drivers.