Hello Tobias,

So after thinking about this today I am planning to add
the IPC_M_DATA_READ (copying memory form the callee to the caller) call,
and implementing a kind of protocoll for sending a request and, on
success of sending this, waiting for the answer for this call. The
communication would look like this:
  1) caller opens a phone to the callee
  2) caller sends request to the callee using the IPC_M_DATA_WRITE method
  3) on success of sending the caller calls the callee again using
     the IPC_M_DATA_READ method
  4) the callee stores the reply in the memory to be copied to the caller
  5) on success the the caller has gotten the reply for his request

This looks reasonable to me.

Well this would make handling sending a request and receiving a reply
even more easy, since the callee would not have to wait for the new call
from the caller, requesting the reply. Additionally this would reduce
the amount of syscalls used to perform a communication.

I suggest you first implement the protocol with the two methods you suggest above. When you have it working, we can implement the IPC_M_DATA_READ_WRITE method as kind of a optimization.


M.D.

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel

Reply via email to