I was writing a console driver for linux and I came across the tty interface that I need to set up for this driver. I got confused as to how tty drivers are bound with low-level drivers.
Many times the root file system already contains a lot of tty devices. I am wondering how low-level devices can bind to one of the existing tty nodes on the root file system.
For example, /dev/tty7
: Node on the root file system.
How does a low-level device driver connect with this node? Or should that low-level device define a completely new tty device?