mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
memtrap: add a bit of documentation for memtrap
This commit is contained in:
parent
67efc76abc
commit
26383c6f14
1 changed files with 11 additions and 0 deletions
|
|
@ -26,6 +26,17 @@
|
|||
|
||||
#include <pulsecore/macro.h>
|
||||
|
||||
/* This subsystem will trap SIGBUS on specific memory regions. The
|
||||
* regions will be remapped to anonymous memory (i.e. writable NUL
|
||||
* bytes) on SIGBUS, so that execution of the main program can
|
||||
* continue though with memory having changed beneath its hands. With
|
||||
* pa_memtrap_is_good() it is possible to query if a memory region is
|
||||
* still 'good' i.e. no SIGBUS has happened yet for it.
|
||||
*
|
||||
* Intended usage is to handle memory mapped in which is controlled by
|
||||
* other processes that might execute ftruncate() or when mapping in
|
||||
* hardware resources that might get invalidated when unplugged. */
|
||||
|
||||
typedef struct pa_memtrap pa_memtrap;
|
||||
|
||||
pa_memtrap* pa_memtrap_add(const void *start, size_t size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue