'\" t .\" Title: snd_lookup_minor_data .\" 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_LOOKUP_MINOR_DAT" "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_lookup_minor_data \- get user data of a registered device .SH "SYNOPSIS" .HP \w'void\ *\ snd_lookup_minor_data('u .BI "void * snd_lookup_minor_data(unsigned\ int\ " "minor" ", int\ " "type" ");" .SH "ARGUMENTS" .PP \fIminor\fR .RS 4 the minor number .RE .PP \fItype\fR .RS 4 device type (SNDRV_DEVICE_TYPE_XXX) .RE .SH "DESCRIPTION" .PP Checks that a minor device with the specified type is registered, and returns its user data pointer\&. .PP This function increments the reference counter of the card instance if an associated instance with the given minor number and type is found\&. The caller must call \fBsnd_card_unref\fR appropriately later\&. .SH "RETURN" .PP The user data pointer if the specified device is found\&. \fBNULL\fR otherwise\&. .SH "COPYRIGHT" .br