hi all, I want to write a simple example in l4, and there are to task module: client,server in the client side, I use the interface which is inplemented in server side.like: int open(int fd, int flags) I know that the client side can get the server's thread_id throw name service. I want to ask can the server side get the client's task_id or thread_id? or must the client side send the thread_id to server?
thank you.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
I know that the client side can get the server's thread_id throw name service. I want to ask can the server side get the client's task_id or thread_id? or must the client side send the thread_id to server?
your server will call either l4_ipc_wait() or l4_ipc_reply_and_wait() in order to receive the message from the client. In both cases there is a src parameter which will contain the client's thread ID after the system call returns.
Bjoern
l4-hackers@os.inf.tu-dresden.de