[LCP]Getting a list of installed device drivers

Quang Nguyen (Ngo) quang at tapeware.com
Thu Aug 29 06:51:06 UTC 2002


On Wednesday 28 August 2002 06:23 pm, Veena wrote:
> Hello,
>
> We are new members of this group.
> We are working on project following is the prg
> statement,
> Write an application in C language to findout which
> hardware options (device drivers) are being supported
> by the installed operating system and list them. allow
> user to select one from the list, print the selected
> option details (like name).
>
> We are new to linux operating system. Will you please
> help us?
>
> Veena,Darshana,Rashmi.

Installed drivers (modules) are in /lib/modules/<kernel_version>.
Loaded modules are listed in /proc/modules.
Active devices are in /proc/devices.

So just write some C code to parse the items.

--
Quang


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________




More information about the linuxCprogramming mailing list