on-internet
← Community

DriverKit external methods only populate structuredOutput if they return kIOReturnSuccess

Stack Overflow ·

I'm calling IOConnectCallStructMethod with a struct output, and that output never gets populated unless my DriverKit IOUserClient ExternalMethod returns kIOReturnSuccess. from my app code: size_t outputSize {sizeof(WriteOutput)}; WriteOutput output {0}; kern_return_t ret = IOConnectCallStructMethod(v_connection, static_cast<uint32_t>(ExternalMethodType::ExternalMethodType_Write),&input, inputSize, &output, &outputSize); and my driver UserClient method (dispatched by ExternalMethod) int USBDriverUserClient::writeHandler(OSObject *target, void *reference, IOUserClientMethodArguments *arguments)

Comments

Sign in or sign up to comment and upvote.

No comments yet.