A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.
Linux Device Drivers
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.