RPC( dataspace)

Adam Lackorzynski adam at os.inf.tu-dresden.de
Mon May 9 00:57:26 CEST 2016


Hi,

On Mon May 02, 2016 at 16:39:21 +0200, ba_f wrote:
> I wanna use the new RPC with a L4Re::Dataspace as parameter.
> Unfortunately, I get an Error=0xfffff828=8_dec.
> 
> What's my Error?
 
The error message says that the receive side (the server) did not
provide storage space for the message.
 
> struct SERV : L4::Kobject_t<SERV, L4::Kobject, 0x44>

Change that to 
struct SERV : L4::Kobject_t<SERV, L4::Kobject, 0x44, L4::Type_info::Demand_t<1> >

to specify that the server can also receive a cap.

>   r = serverCap->transmit( size, dataspace);
>   if (r){
>     printf("Error=0x%x=%d_dec talking to server\n",r);

Please check your compiler warnings, this misses the third parameter and
thus the error message is confusing/wrong.

> BTW: What's that 0x44 in the struct?
> Where do i find valid flags for this parameter?

The protocol number of the interface, some unique number that should not
clash with other interfaces used for a channel.



Adam
-- 
Adam                 adam at os.inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/




More information about the l4-hackers mailing list