1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>register_sound_special_device</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Device Drivers"><link rel="up" href="snddev.html" title="Chapter 5. Sound Devices"><link rel="prev" href="API-snd-printdd.html" title="snd_printdd"><link rel="next" href="API-register-sound-mixer.html" title="register_sound_mixer"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">register_sound_special_device</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-snd-printdd.html">Prev</a> </td><th width="60%" align="center">Chapter 5. Sound Devices</th><td width="20%" align="right"> <a accesskey="n" href="API-register-sound-mixer.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-register-sound-special-device"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>register_sound_special_device — 
2  register a special sound node
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">register_sound_special_device </b>(</code></td><td>const struct file_operations * <var class="pdparam">fops</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">unit</var>, </td></tr><tr><td> </td><td><a class="link" href="API-struct-device.html" title="struct device">struct device</a> * <var class="pdparam">dev</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="id-1.7.8.5"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>fops</code></em></span></dt><dd><p>
4     File operations for the driver
5    </p></dd><dt><span class="term"><em class="parameter"><code>unit</code></em></span></dt><dd><p>
6     Unit number to allocate
7    </p></dd><dt><span class="term"><em class="parameter"><code>dev</code></em></span></dt><dd><p>
8     device pointer
9    </p></dd></dl></div></div><div class="refsect1"><a name="id-1.7.8.6"></a><h2>Description</h2><p>
10   Allocate a special sound device by minor number from the sound
11   subsystem.
12</p></div><div class="refsect1"><a name="id-1.7.8.7"></a><h2>Return</h2><p>
13   The allocated number is returned on success. On failure,
14   a negative error code is returned.
15</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-snd-printdd.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="snddev.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-register-sound-mixer.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">snd_printdd</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">register_sound_mixer</span></td></tr></table></div></body></html>
16