1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>rio_alloc_net</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-mport-is-active.html" title="rio_mport_is_active"><link rel="next" href="API-rio-update-route-tables.html" title="rio_update_route_tables"></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_alloc_net</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-rio-mport-is-active.html">Prev</a> </td><th width="60%" align="center">Enumeration and Discovery</th><td width="20%" align="right"> <a accesskey="n" href="API-rio-update-route-tables.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-rio-alloc-net"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>rio_alloc_net — 2 Allocate and configure a new RIO network 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">struct rio_net * <b class="fsfunc">rio_alloc_net </b>(</code></td><td>struct rio_mport * <var class="pdparam">port</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">do_enum</var>, </td></tr><tr><td> </td><td>u16 <var class="pdparam">start</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1109990300"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>port</code></em></span></dt><dd><p> 4 Master port associated with the RIO network 5 </p></dd><dt><span class="term"><em class="parameter"><code>do_enum</code></em></span></dt><dd><p> 6 Enumeration/Discovery mode flag 7 </p></dd><dt><span class="term"><em class="parameter"><code>start</code></em></span></dt><dd><p> 8 logical minimal start id for new net 9 </p></dd></dl></div></div><div class="refsect1"><a name="idp1109993900"></a><h2>Description</h2><p> 10 Allocates a RIO network structure, initializes per-network 11 list heads, and adds the associated master port to the 12 network list of associated master ports. Returns a 13 RIO network pointer on success or <code class="constant">NULL</code> on failure. 14</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-mport-is-active.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="API-rio-update-route-tables.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">rio_mport_is_active</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">rio_update_route_tables</span></td></tr></table></div></body></html> 15