Pierre Cloutier wrote:
> 
> Also, is there a way to make a variable and/or function global within a
> module but private relative to the other
> kernel modules without stuffing all the module code in a single file?
> 

I realised that if you define a function or a variable as 'static' ,
these one
are available only in your module ( like private to your module ).

ex:

int counter ; // this will appear in ksyms and will be global to kernel
level

static int counter ; // this won't appear in ksyms and won't be global
to kernel level !

-- KUMSTA Christophe
-- <[EMAIL PROTECTED]>
-- real-time system developper
-- RT-Linux (Use the source luke)
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to