Re: how to transfer capabilities from server to client
Markus Partheymueller <[email protected]>
| Newsgroups | gmane.comp.micro-kernel.l4.devel |
|---|---|
| Message-ID | <[email protected]> |
> 1. In the dispatch function of the server, it extracts a cap from the stream > L4::Ipc::Snd_fpage cap; > ios >> cap; > Why do we use "cap" here? What is the difference between "cap" and the receive item(rec_cap)? cap is the flexpage describing the mapping. In particular, it can be used to check the success of the mapping. Otherwise the move call would fail. > 2. In this example, when does the map process finish? > I think it looks like it has already finished when the server receives the request. > If so, does it mean that the kernel preforms the map operation automatically? But how does the kernel > know the capability needs to be mapped into server? The mapping is done during the call. During IPC, the kernel matches receive and send items and performs the mapping. This is exactly why the server has to use setup_wait to insert the receive item. _______________________________________________ l4-hackers mailing list [email protected] http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
signature.asc
(application/pgp-signature, 496 B)
-----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJTkhk4AAoJEEKdXT07x5qCwLoH/0qEAuCYRlD6hvkMrY9GxVnw EphJL0tW74Ei/NA208yETlSQ3k9hRU3ftinO/7nYcidKD70Iejb+z3RQXDPeBuFq ifMygYDM8K91XyAALox2JaBB6RjXAPSi+sq8JqG+34aMxZFXKgsMSgTLNDj3sHpr MlG+xhLk0caXKZYeh4FfdAUkyr0gKYdWYTLMgSTzJz1jZ1dkxjQe5zjpEL5iFe8F OYxt8Y6KJWySaXhCpyRE+2jPFr1DI5mPPp2u7FE7OFqJFE1csixTdEQPYOrjRBtj 3wTWUjzUE43r8FsFUR7PUaBnrKo5o+tGWgeZSsKEAZ12eYDpSu+jj+6WDQflBNM= =5KTl -----END PGP SIGNATURE-----