device handling using device files
I am trying to access devices using device files from /dev directory.
after opening file using open() system call I want to give command to that device for which device file is associated.
suppose i want to start web cam of my laptop which content I should write into the device file "/dev/input/event9" is the file associated with webcam.
or suppose i want to access the content of the hard disk from file /dev/sda how i can read this file using read() system call.
if you know any example regarding to this please send it to me.