Actually, (at least on RH 5.2) lsmod seems to do nothing more than attach
column headings to the contents of /proc/modules. Within a program, you can
just open and read the (pseudo)file /proc/modules. From the command line,
either lsmod or cat /proc/modules will get you a list of the currently
installed modules.
Norm
----- Original Message -----
From: Heinz Haeberle <[EMAIL PROTECTED]>
To: Frederic Cazenave <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, March 06, 2001 2:39 PM
Subject: Re: [rtl] Modules
> Either use lsmod within a system call or check /proc/modules (correct
spot?)
> insmod will insert the module. Just again by a system call
> (....system("/<path>/insmod <module>");....)
>
> Unfortunately I am on windows so I can't proof it.
>
> Heinz
>
>
> ----- Original Message -----
> From: "Frederic Cazenave" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 06, 2001 2:20 PM
> Subject: [rtl] Modules
>
>
> > Hi,
> >
> > is there a way to check from a user space program if a module is
> > installed or not ?
> > And if my module is mot installed how to do it inside the program ?
> >
> > Fred
> >
> > --
> > _________________________________________________________
> > | |
> > | Frederic CAZENAVE |
> > | _/\_ /^= McGill Radar |
> > | \_/ \// Box 198, MacDonald College |
> > | | /-\ | Ste Anne de Bellevue |
> > | || || Quebec, Canada H9X 3V9 |
> > | Tel (514) 398 7733 fax (514) 398 7755 |
> > | mailto:[EMAIL PROTECTED] |
> > | http://www.mpl.orstom.fr/hydrologie/catch/ |
> > |__________________________________________________________|
> >
> >
> >
> > -- [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/
> >
>
> -- [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/
>
-- [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/