On Thursday 28 June 2001 06:15, Anumula Venkata Naga Seshaiah wrote:
> Hi Friens,
>
>    I am novice to RTLinux.
>    I want to know whether we can send commandline args to RTL prog.
>    If anybody knows please write to me.
>    If so please write me how to send args .

It's possible using the module args method of standard Linux. This is from a 
driver (non-RTL) that I've successfully used on both 2.2.x and 2.4.x kernels:

---8<-----------------------------------------------------------------
        int res = 10;
        MODULE_PARM(res, "i");   
----------------------------------------------------------------->8---

Just build as usual, and the module will be able to accept values into the 
"res" variable. You can pass the args using insmod something like this:

        insmod some_module res=12

If "res" isn't in the argument list, the default value will be left as is. 

Look for the definition of MODULE_PARM in the kernel source for more details. 
:-)


//David Olofson --- Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
|      Multimedia Application Integration Architecture      |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------> http://www.linuxaudiodev.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`--------------------------------------> [EMAIL PROTECTED] -'

----- End of forwarded message from [EMAIL PROTECTED] -----
-- [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/

Reply via email to