Quote:
Originally Posted by avish78
Hi,
Thanks for your reply.
No - I did not explain my problem correctly. As I understand there is system call mmap - which map a device to the memory of the program so I can read\write to this memory and it will be written to the device. My problem is that I can not find this device under /sys. Is there a way to get in the program a list of all the devices in the system?
|
to get the definite list of all devices on your computer, you would go through /sys
this is clearly demonstrated by running
strace -e trace=file -f lsusb
or
strace -e trace=file -f lspci
other way, the one that gets all initialized devices, is to look at all the nodes in /dev