User Tools

Site Tools


solaris:audio_engine_set_private.9f

audio_engine_set_private


NAME

audio_engine_set_private, audio_engine_get_private - set or get private state for an audio engine

SYNOPSIS

#include <sys/audio/audio_driver.h>

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 with audio_engine_alloc(9F)

state

a private soft state structure for the device driver

INTERFACE 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 by audio_engine_set_private() is passed as the first argument to the engine’s entry points registered in the audio_engine_ops(9S) structure.

The audio_engine_get_private() function retrieves the previously 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(7) for descriptions of the following attributes:

SEE ALSO

audio(4D), attributes(7), audio_engine_alloc(9F), audio_engine_ops(9S)


solaris/audio_engine_set_private.9f.txt · Last modified: 2023/07/19 08:58 by A User Not Logged in