carta
snd_card_free_in_thread(9)

snd_card_free_in_thread9

Call snd_card_free in thread

Usage

int snd_card_free_in_thread(struct snd_card * card);

Arguments

card

soundcard structure

Overview

This function schedules the call of snd_card_free function in a work queue. When all devices are released (non-busy), the work is woken up and calls snd_card_free.

When a card can be disconnected at any time by hotplug service, this function should be used in disconnect (or detach) callback instead of calling snd_card_free directly.

Returns - zero otherwise a negative error code if the start of thread failed.

From linux-manual-2.6.18 2.6.18.dfsg.1-26etch2 in Debian 4.0 (Etch). Parsed by carta from the page's man source.