As depicted in the figure attached along with, if I pass the pBuf (which I received by calling the dev_malloc function) in the resmgr_msgread system call to copy the data passed in the write command to pBuf, I gets the Resource Manager Server Error. This means that the Resource Manager is not able to access the memory. [Scenario 1]
But if I copy the data passed from the write command to the local memory in the Resource Manager and then I do memcpy to the pBuf, it allows. [Scenario 2]
Does any have any idea why the Resource Manager is behaving like this?
AFAIK dev_malloc is not a QNX fonction (unless it’s part of an TDK)???
What error are you getting? How and when is your resmgr returning that error?
From the information you are providing it should work, hence my guess is there is something more to what you are telling us Would be so much easier with real code instead of trying to guess what you could have done wrong.
Devil is in the detail. Maybe there is no magic in your code, but there is got to be more then what you drawing shows. For example in method 2, doesn’t show how pLocal is initialise.
The error message SRVRFAULT: A fault occurred when the kernel tried to access the buffers provided. I suggest you trust this error message and start from there.