Hi *<br><br>but If I do this and try and access my global variable in mod_init of my module - compile fails with undefined variable????<br>please assist<br><br>Kind regards<br><br><div class="gmail_quote">On Wed, Mar 18, 2009 at 3:45 PM, Iņaki Baz Castillo <span dir="ltr">&lt;<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2009/3/18 Jason Penton &lt;<a href="mailto:jason.penton@smilecoms.com">jason.penton@smilecoms.com</a>&gt;:<br>

<div class="im">&gt; Hi *,<br>
&gt;<br>
&gt; What is the best practice for exposing a particular variable / ptr from the<br>
&gt; core (e.g. sr_module.c) to any of the modules?<br>
<br>
</div>Variables from the core are declarated in &quot;globals.h&quot; as &quot;extern&quot; (so<br>
they are globals). This is the case of all the core parameters.<br>
<font color="#888888"><br>
<br>
--<br>
Iņaki Baz Castillo<br>
&lt;<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>&gt;<br>
</font></blockquote></div><br>