Re: RPC( dataspace)

Adam Lackorzynski <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel
Message-ID <[email protected]>
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                 [email protected]
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.