[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] Modules
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 <Heinz.Haeberle@gmx.net>
To: Frederic Cazenave <cazenave@radar.mcgill.ca>; <rtl@rtlinux.org>
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" <cazenave@radar.mcgill.ca>
> To: <rtl@rtlinux.org>
> 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:Frederic.Cazenave@hmg.inpg.fr |
> > | http://www.mpl.orstom.fr/hydrologie/catch/ |
> > |__________________________________________________________|
> >
> >
> >
> > -- [rtl] ---
> > To unsubscribe:
> > echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> > echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> > --
> > For more information on Real-Time Linux see:
> > http://www.rtlinux.org/rtlinux/
> >
>
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
>
- References:
- Modules
- From: Frederic Cazenave <cazenave@radar.mcgill.ca>
- Re: [rtl] Modules
- From: "Heinz Haeberle" <Heinz.Haeberle@gmx.net>