AINIT.TEMPLATE(5) AINIT.TEMPLATE(5)
NAME
Template - template file for ainit
DESCRIPTION
Template files provide configuration for the ALSA sound system and ainit will cre-
ate final ALSA configuration file according to them.
Template is a common ALSA configuration file (like /etc/alsa/pcm/dmix.conf) but
with one difference. Everything between two ’%’ chars is processed and replaced by
ainit.
When ainit is lauched it parses the template files and copies them to target
(defined in ainit.conf). If ainit finds defined string enclosed by ’%’ chars, it
will take corresponding action (allocate/free memory, semaphore) and eventualy
write result to the target file.
Ainit can recognize this tokens:
%ipc_sem%
If ainit is lauched with "start" argument and this token is found it will
allocate new IPC semaphore and write appropriate ipc_key to the target file.
This semaphore can be used by alsa-lib for secure sound data sharing with
dmix, dshare or dsnoop plugins because this semaphore is allocated with
restricted permissions.
If ainit is lauched with "stop" argument and this token is found it will
free this IPC semaphore.
%ipc_mem_direct%
%ipc_mem_plug%
If ainit is lauched with "start" argument and one of this tokens is found it
will allocate new shared memory and write appropriate ipc_key to the target
file.
This memory can be used with alsa-lib for secure sound data sharing with
dmix, dshare or dsnoop plugins because this memory is allocated with
restricted permissions.
If ainit is lauched with "stop" argument and one of this tokens is found it
will free this shared memory.
FILES
/etc/alsa/pcm/dmix.template
/etc/alsa/pcm/dmix.conf
/etc/alsa/pcm/dmix.conf.lock
/etc/alsa/pcm/dsnoop.template
/etc/alsa/pcm/dsnoop.conf
/etc/alsa/pcm/dsnoop.conf.lock
SEE ALSO
Also ainit(8), ainit.conf(5)
AUTHOR
Martin Stransky <stransky AT redhat.com>
Red Hat Inc. 11 May 2005 AINIT.TEMPLATE(5)
Generated by $Id: phpMan.php,v 4.55 2007/09/05 04:42:51 chedong Exp $ Author: Che Dong
On Apache/1.3.41 (Unix) PHP/5.2.5 mod_perl/1.30 mod_gzip/1.3.26.1a
Under GNU General Public License
2009-01-08 08:08 @38.103.63.58 CrawledBy CCBot/1.0 (+http://www.commoncrawl.org/bot.html)