ioctl threadsafe ?

Jun 12, 2008 0 Replies

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


Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required