Data streaming / sharing from client side in an IPC example

Björn Döbel doebel at os.inf.tu-dresden.de
Thu Jan 30 11:22:58 CET 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Ajith,

> thank you very much for the kind answer. The solution You provided 
> worked well. The only concern is as You know the data to be send
> can not have a greater size than the L4_UTCB_GENERIC_DATA_SIZE (due
> to UTCB size). So the question is do you have also another solution
> for larger data streaming? (Off course other than sending the data
> by means of various blocks with L4_UTCB_GENERIC_DATA_SIZE)

if splitting data into multiple packets does not suffice for you, you
might consider mapping whole memory pages from sender to receiver
(which in turn allows to build zero-copy scenarios).

An example for this can be found in l4/pkg/examples/libs/l4re/streammap.

There's furthermore the shmc library in l4/pkg/shmc, which allows you
to use shared-memory ring buffers between programs.

Cheers,
Bjoern
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlLqKAIACgkQP5ijxgQLUNmxiwCeIN2Ab8f+e3gBCqxWofqKTuVF
uwsAn2s9MPKBxy4+/cxPNm8w1ePLxvED
=30ch
-----END PGP SIGNATURE-----




More information about the l4-hackers mailing list