IoregistryEntry :: fromPath () fallas
-
22-09-2019 - |
Pregunta
mi iokit kext esta fallando En iMacs mayores Para localizar la ruta /opciones en el plano Devicetree de la Ioregistry. ¿Alguien más ha encontrado esto o sabe por qué fallaría? Thx-> adv
IORegistryEntry* regEntry = IORegistryEntry::fromPath("/options", gIODTPlane);
if(NULL == regEntry)
{
regEntry = IORegistryEntry::fromPath("IODeviceTree:/options");
if(NULL == regEntry)
{
DEBUG_LOG("getIORegOptionsEntry: FAILURE TO LOCATE: IODeviceTree:/options\n");
}
}
Solución
La ruta utilizada para crear ioregistryentry no es válida como por la API: Debe comenzar con un ':'. El plano de E/S no debe incluirse en la ruta, sino como el segundo parámetro.
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow