'\" t .\" Title: snd_hwdep_new .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: April 2019 .\" Manual: Miscellaneous Functions .\" Source: Kernel Hackers Manual 4.9.168 .\" Language: English .\" .TH "SND_HWDEP_NEW" "9" "April 2019" "Kernel Hackers Manual 4\&.9\&." "Miscellaneous Functions" .\" ----------------------------------------------------------------- .\" * 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_hwdep_new \- create a new hwdep instance .SH "SYNOPSIS" .HP \w'int\ snd_hwdep_new('u .BI "int snd_hwdep_new(struct\ snd_card\ *\ " "card" ", char\ *\ " "id" ", int\ " "device" ", struct\ snd_hwdep\ **\ " "rhwdep" ");" .SH "ARGUMENTS" .PP \fIcard\fR .RS 4 the card instance .RE .PP \fIid\fR .RS 4 the id string .RE .PP \fIdevice\fR .RS 4 the device index (zero\-based) .RE .PP \fIrhwdep\fR .RS 4 the pointer to store the new hwdep instance .RE .SH "DESCRIPTION" .PP Creates a new hwdep instance with the given index on the card\&. The callbacks (hwdep\->ops) must be set on the returned instance after this call manually by the caller\&. .SH "RETURN" .PP Zero if successful, or a negative error code on failure\&. .SH "COPYRIGHT" .br