Manish Madan writes:
Hi, I am planning to write a program to discover particulars of some hardware devices on a system. For the ones where I need to make ioctl() calls, I do not know which device file in /dev to open. How can I discover which file to open and the ioctl never fails ?
Please read the kernel src in /usr/src/linux
Other places to look for info for your project: 1. http://kernelnewbies.org/documents/kdoc/kernel-api/linuxkernelapi.html especially, devfs_get_ops 2. http://kernelnewbies.org/documents/kdoc/ (for a LOT of associated info) 3. http://www.atnf.csiro.au/people/rgooch/linux/docs/devfs.html 4. http://www-106.ibm.com/developerworks/library/l-fs4.html