pulseaudio/src
Ahmed S. Darwish 27d0a3b388 pstream: Support memfd blocks transport
Now that we have the necessary infrastructure to memexport and
mempimport a memfd memblock, extend that support higher up in the
chain with pstreams.

A PA endpoint can now _transparently_ send a memfd memblock to the
other end by simply calling pa_pstream_send_memblock() – provided
the block's memfd pool was earlier registered with the pstream.

If the pipe does not support memfd transfers, we fall back to
sending the block's full data instead of just its reference.

** Further details:

A single pstream connection usually transfers blocks from multiple
pools including the server's srbchannel mempool, the client's
audio data mempool, and the server's global core mempool.

If these mempools are memfd-backed, we now require registering
them with the pstream before sending any blocks they cover. This
is done to minimize fd passing overhead and avoid fd leaks.

Moreover, to support all these pools without hard-coding their
number or nature in the Pulse communication protocol itself, a new
REGISTER_MEMFD_SHMID command is introduced. That command can be
sent _anytime_ during the pstream's lifetime and is used for
creating on demand SHM ID to memfd mappings.

Suggested-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
2016-04-02 05:55:14 +02:00
..
daemon default.pa: remove X11 module examples 2016-02-09 13:04:49 +02:00
modules pstream: Support memfd blocks transport 2016-04-02 05:55:14 +02:00
pulse pstream: Support memfd blocks transport 2016-04-02 05:55:14 +02:00
pulsecore pstream: Support memfd blocks transport 2016-04-02 05:55:14 +02:00
tests pstream: Support memfd blocks transport 2016-04-02 05:55:14 +02:00
utils solaris: Illumos does not ship with SOUND_PCM* functionality 2016-01-22 13:25:29 +05:30
.gitignore .gitignore: Add lfe-filter-test 2015-03-31 12:42:37 +03:00
depmod.py update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
Makefile.am pstream: Support memfd blocks transport 2016-04-02 05:55:14 +02:00
map-file volume: Add LFE balance API 2015-10-30 09:13:10 +02:00