Abdelkader YEDDES writes:
 > 
 > Yes fopen take a handle on a file or a device. I always use these function.
 > But in we must send an IO control to the device to have the specific data.
 > And every IOCTL is dependent to driver.
 > So, after opening the device with fopen. I should know what IOCTL should be
 > sent with ioctl function. 

He meant you can use fopen() to open
/sys/bus/usb/devices/1-4/idProduct, and then scanf() to read it.

-- 
Joseph J. Pfeiffer, Jr., Ph.D.       Phone -- (505) 646-1605
Department of Computer Science       FAX   -- (505) 646-1002
New Mexico State University          http://www.cs.nmsu.edu/~pfeiffer



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to