Hi ,
I am trying to write dext code for my existing Kext , i see "IOMemoryDescriptor::withAddress" being used , I dont find any alternatives in "DriverKit", Is there any others ways to achieve this,
Any input is appriciated ,
Thanks,
revan
I am trying to write dext code for my existing Kext , i see "IOMemoryDescriptor::withAddress" being used , I dont find any alternatives in "DriverKit", Is there any others ways to achieve this,
Any input is appriciated ,
Thanks,
revan
Code Block C++ uint8_t data = { 1, 2, 3, 4 }; uint64_t dataSize = 4; IOBufferMemoryDescriptor* buffer = nullptr; uint8_t pipeMaxPacketSize = 0; uint64_t addressValue = 0; uint64_t length = 0; ivars->interface->CreateIOBuffer(kIOMemoryDirectionInOut, pipeMaxPacketSize, &buffer); (buffer)->Map(0, 0, 0, 0, &addressValue, &length); memcpy((uint8_t*)addressValue, data, dataSize);