'\" t .\" Title: snd_device_register .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Management of Cards and Devices .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SND_DEVICE_REGISTER" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Management of Cards and Device" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" snd_device_register \- register the device .SH "SYNOPSIS" .HP \w'int\ snd_device_register('u .BI "int snd_device_register(struct\ snd_card\ *\ " "card" ", void\ *\ " "device_data" ");" .SH "ARGUMENTS" .PP \fIcard\fR .RS 4 the card instance .RE .PP \fIdevice_data\fR .RS 4 the data pointer to register .RE .SH "DESCRIPTION" .PP Registers the device which was already created via \fBsnd_device_new\fR\&. Usually this is called from \fBsnd_card_register\fR, but it can be called later if any new devices are created after invocation of \fBsnd_card_register\fR\&. .SH "RETURN" .PP Zero if successful, or a negative error code on failure or if the device not found\&. .SH "COPYRIGHT" .br