LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-12-2005, 06:52 AM   #1
node047
LQ Newbie
 
Registered: Mar 2005
Location: india
Posts: 12

Rep: Reputation: 0
devices and drivers display


can anyone pl tell me how do i display all the drivers and the devices installed in the system without using any shell commands and the proc file system.
i m using c language
thanks in advance
 
Old 04-12-2005, 11:52 PM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
without shell commands suggests that you are GUI only, the C part suggests you want to do it from inside a program?

so maybe say a little more, on what it is you want to do.
 
Old 04-13-2005, 05:21 AM   #3
node047
LQ Newbie
 
Registered: Mar 2005
Location: india
Posts: 12

Original Poster
Rep: Reputation: 0
i want to write a function which can b called in any other c program,the fun is :: void DevShow(void);void drvShow(void);
This should display all the existing devices /drivers in the system on the screen. it has to display the names .
I wanted to know where exactly is the list stored ,and by wat way can i access that data structure (in user mode)
 
Old 04-13-2005, 05:50 AM   #4
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
the /proc file system.

whats in /proc is basically all that can be gathered from syscalls, so if you look up on syscalls, you should be able to request the info about devices/drivers i think, tho i really don't know if there is another way, might want to look at the glibc info pages just to check, it also has some basicish info on the syscall function
 
Old 04-14-2005, 12:43 AM   #5
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing new drivers for hardware devices morph00 Linux - Hardware 8 12-23-2005 11:55 PM
Installing drivers for support Vendors, devices and interfaces klmbrt Linux - Newbie 11 03-10-2005 12:17 PM
no pcmcia drivers in /proc/devices fataldata Linux - Laptop and Netbook 6 08-19-2004 08:52 PM
show all hardware devices and drivers explorer Linux - Hardware 2 04-11-2004 03:54 AM
Drivers for these USB devices? robbage Linux - Hardware 3 12-09-2002 01:00 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration