Udev & Interacting With Devices
I'm trying to work out how to work with udev in my programs. I understand that this works in conjunction with sysfs mounting devices in the tree dynamically.
More specifically, I want my program to find a USB Memory stick and then read/write data to it but I cannot find out any goo tutorials on how to do it except this brief intro here :
Tutorial: How to use libudev and Sysfs in Linux
And the udev API pages are not particularly helpful for a beginner.
1) What particularly puzzles me is how do I know what class a particular device is? e.g. what class is a memory stick? And where can I find out how other devices are classed?
2) Can I used the output from dmesg to determine what class my device is and how can I do that?
3) Are there any good tutorials or books on this particular subject?