Post

Replies

Boosts

Views

Activity

Does the method IOConnectCallMethod(), -> creates a tmp buffer in driver, or uses the same userspace buffer and map with physical address
Hi,Consider the following method, to send /receive the data using IOUserClient from driver<->user appIOConnectCallMethod(conn, 0, 0, 0, *inStruct, instructCnt, 0, 0, *outStruct, outStructCnt),1) In case of input data, does the same memory [atlest by physical/ kernel virtual mapping] is used in kernel space, or a tmp buffer is created and that will be used in driver? - I tried to modify the input struct data [in driver] but didn't see any change in the userspace, my main concern is whether any tmp buffer is getting created or not2) Similar to input data, does any tmp buffer is being used in driver and then copied to userspace output bufferIf any such copy operations are happening, does it effects the performance ?, can I use the shared memory instead?ThanksVenkat
3
0
1.8k
Aug ’18
Unable to load the kernel module with class "IOUSBHostInterface"
Hi Team,We have a driver code which is originally written for 10.11.6, for USB detection using "IOUSBHostInterface" and "IOUserClient"Trying to port/make it work for mac 10.14.6, able to compile the code but but facing linking error while loading the modules(kernel) kxld[com.mycompany.driver]: The super class vtable '__ZTV15IOUSBHostDevice' for vtable '__ZTV24com_mycompany_driver' is out of date. Make sure your kext has been built against the correct headers.(kernel) kxld[com.mycompany.driver]: The super class vtable '__ZTV12IOUserClient' for vtable '__ZTV30com_mycompany_driver_userClient' is out of date. Make sure your kext has been built against the correct headers.(kernel) Can't load kext com.mycompany.driver- link failed.also the below(kernel) kxld[om.mycompany.driver2]: The super class vtable '__ZTV20IOEthernetController' for vtable '__ZTV18com_mycompany_driver'2 is out of date. Make sure your kext has been built against the correct headers.I found IOUSBHostInterface is deprecated in higher versions, if possible can you share the alternative for this for the USB enumeration and other operationThanksVenkat
1
0
831
Feb ’20