hello all,
 
>I have a question concerning drivers.  I know that most driver-userspace  >communication is done through nodes (usually in /dev/.... ) but this means you >have to suffer the overhead of opening and closing a file.
 
    In unix, everything is a file. This implementation strategy is done to get an easy life in your programming life, not to suffer from it.
 
>Is there a way to directly communicate with the
>driver
 
I think You say the device. Device Drivers are written to access to the devices. Then, drivers include system calls, you must imply a filename as a parameter to the system call.
 
> (i.e. bypassing the >node )?  Any help is appreciated.
 
    Besides, direct access to the device can be different, according to the communication channel you use. This channel can be RS-232 or USB. You can use input/output header files(functions like inportb, outportb...) to access to the serial ports. Besides, while using USB channels, it is a little(???) different. For that, You should delve into usb.c and usb.h files. After understanding the USB software design in Linux, you should look at the usb-skeleton.c file, which is a base file you can use to communicate with your USB device. It includes standart system calls like open, close, read, write ... These functions are indispensible.
 
>Thanks
 
You are welcome.
 
Bayram Kurumahmut
Senior Student
Computer Engineering Department - ITU
Istanbul/Turkey
_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to