I think browsing thru the /proc directory might help.. there are couple of
files over there which provides stats abt theses devices..moreover you can
write a module to get the stats of the particular device from the /proc
directory.. i mean you can make an entry in the /proc directory which will
display the stats of the requested device.

/proc/devices
/proc/ioports
/proc/interrupts

maybe this helps...

regards,
Mayank Sharma
Mindtree Consultancy Pvt. Ltd.

> -----Original Message-----
> From: V.Suresh [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 29, 2001 3:44 AM
> To: LIH
> Subject: [LIH] [[EMAIL PROTECTED]: [linux-madurai] 
> Question?]
> 
> 
> 
> My friend needs help with this. This is a forwarded mail.
> 
> 
> ---------------------Forwarded from Linux-Madurai---------------
> Hello,
> 
>  I need to know how to get the details about the
> various devices(character & block devices) using
> system calls.mainly i would like to know how to
> retrieve the information about the
> printer,keyboard,mouse,serial prot,parallel
> port,co-processor,network,RAM disk.
>   i need the details like the status of that device &
> find out whether the above mentioned devices is
> currently available in my system or not.
>   kindly ,let me know the answers for the above
> questions as soon as possible.
> 
> your's
> Karthikeyan.N
> 
> ____________________________________________________________________
> ----- End forwarded message -----
> 
> -- 
>   With Warm Regards,
>  ___________________________________
> | V Suresh                          |
> |                                   |
> | Mail:       [EMAIL PROTECTED]          |
> | Web :       www16.brinkster.com/vsuresh |
> |___________________________________|
> |   Powered by GNU/Linux 2.2.16     |  
> |___________________________________|
> 
> 
> ----------------------------------------------
> LIH is all for free speech.  But it was created
> for a purpose.  Violations of the rules of
> this list will result in stern action.
> 

----------------------------------------------
LIH is all for free speech.  But it was created
for a purpose.  Violations of the rules of
this list will result in stern action.

Reply via email to