ioctl threadsafe ?

I have added some code in soo_ioctl which is called by ioctl if the firs parameter is a socket descriptor. I created my own control message and call my own function from withi soo_ioctl.

From a different task, I create myself a socket and then call ioctl o this socket with my control message. I have added some traces in the function call and in my own function an to my suprise I see that the function that I am calling from withi soo_ioctl is still running in the context of the original task. I would have expected that there is a blocking call towards the tNetTas task where my task will wait for the result. But this does not seem t happen.

Am I doing anything wrong ? If not how do I decouple properly ?

thanks, Philip

Reply to
stuyckp
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.