'\" t .\" Title: register_sound_special_device .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Sound Devices .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "REGISTER_SOUND_SPECI" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Sound Devices" .\" ----------------------------------------------------------------- .\" * 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" register_sound_special_device \- register a special sound node .SH "SYNOPSIS" .HP \w'int\ register_sound_special_device('u .BI "int register_sound_special_device(const\ struct\ file_operations\ *\ " "fops" ", int\ " "unit" ", struct\ device\ *\ " "dev" ");" .SH "ARGUMENTS" .PP \fIfops\fR .RS 4 File operations for the driver .RE .PP \fIunit\fR .RS 4 Unit number to allocate .RE .PP \fIdev\fR .RS 4 device pointer .RE .SH "DESCRIPTION" .PP Allocate a special sound device by minor number from the sound subsystem\&. .SH "RETURN" .PP The allocated number is returned on success\&. On failure, a negative error code is returned\&. .SH "COPYRIGHT" .br