.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "SND_CARD_FREE_IN_THREAD" "9" "09 October 2005" "" ""
.SH NAME
snd_card_free_in_thread \- call snd_card_free in thread
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int snd_card_free_in_thread (snd_card_t * \fIcard\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIcard\fB\fR
soundcard structure
.SH "DESCRIPTION"
.PP
This function schedules the call of \fBsnd_card_free\fR function in a
work queue. When all devices are released (non-busy), the work
is woken up and calls \fBsnd_card_free\fR\&.
.PP
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 \fBsnd_card_free\fR directly.
.PP
Returns - zero otherwise a negative error code if the start of thread failed.