1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>rio_basic_attach</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="RapidIO Subsystem Guide"><link rel="up" href="Enumeration_and_Discovery.html" title="Enumeration and Discovery"><link rel="prev" href="API-rio-disc-mport.html" title="rio_disc_mport"><link rel="next" href="Driver_functionality.html" title="Driver functionality"></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">rio_basic_attach</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-rio-disc-mport.html">Prev</a> </td><th width="60%" align="center">Enumeration and Discovery</th><td width="20%" align="right"> <a accesskey="n" href="Driver_functionality.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-rio-basic-attach"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>rio_basic_attach — 2 </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">rio_basic_attach </b>(</code></td><td> <var class="pdparam">void</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1110043316"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>void</code></em></span></dt><dd><p> 3 no arguments 4 </p></dd></dl></div></div><div class="refsect1"><a name="idp1110044844"></a><h2>Description</h2><p> 5 </p><p> 6 7 When this enumeration/discovery method is loaded as a module this function 8 registers its specific enumeration and discover routines for all available 9 RapidIO mport devices. The <span class="quote">“<span class="quote">scan</span>”</span> command line parameter controls ability of 10 the module to start RapidIO enumeration/discovery automatically. 11 </p><p> 12 13 Returns 0 for success or -EIO if unable to register itself. 14 </p><p> 15 16 This enumeration/discovery method cannot be unloaded and therefore does not 17 provide a matching cleanup_module routine. 18</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-rio-disc-mport.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="Enumeration_and_Discovery.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="Driver_functionality.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">rio_disc_mport</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Driver functionality</td></tr></table></div></body></html> 19