September 22, 2016

Linux Device Drivers

Hi guys,

Could someone explain to me what is the difference between simple char device driver and serial drivers which use the tty core? I mean, if i want to develop a char driver for a serial device and there will be a node in /dev/mydev file system, is it mandatory to use another node /dev/tty_x for the the same driver, or I can use the mydev ?

I am confused about these. In all the driver development books is presented the file_operations structure which holds the entries for the device driver, but in another chapter is presented uart_ops structure which in turn stores others entries.

Thank you,

Click Here!