Kernel Functions for Drivers audio_engine_set_private(9F)
NAME
audio_engine_set_private, audio_engine_get_private - set or
get private state for an audio engineSYNOPSIS
#include
void *audio_engine_get_private(audio_engine_t *eng);
void audio_engine_set_private(audio_engine_t *eng, void *state)
PARAMETERS
eng pointer to an audio engine allocated withaudio_engine_alloc(9F)
state a private soft state structure for the device driverINTERFACE LEVEL
Solaris DDI specific (Solaris DDI)DESCRIPTION
The audio_engine_set_private() function stores a pointer to
the driver private state for the engine in the audio engine structure. The pointer to the private state established byaudio_engine_set_private() is passed as the first argument
to the engine's entry points registered in theaudio_engine_ops(9S) structure.
The audio_engine_get_private() function retrieves the previ-
ously stored private state pointer.RETURN VALUES
The audio_engine_get_private() function returns the device
driver private state pointer.CONTEXT
These functions may be called from any context.ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:SunOS 5.11 Last change: 21 Apr 2010 1
Kernel Functions for Drivers audio_engine_set_private(9F)
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
SEE ALSO
attributes(5), audio(7D), audio_engine_alloc(9F),
audio_engine_ops(9S)
SunOS 5.11 Last change: 21 Apr 2010 2