View Full Version : tty driver development

07-19-2005, 08:50 AM
i'm writing my first tty driver for linux 2.4.18, and i am having trouble making the driver i'm
creating become associated with the hardware that i'm writing it for (an 8 port serial board).
the dev/ttya00-dev/ttya07 files are being created, and i can access them and read and write from them, but the data isn't actually getting sent to the board, even though its processed through my driver. so i guess my question is, when writing a tty driver what exactly sets the driver to be associated with a certain piece of hardware.
thanks for the help.
by the way, the code is on a non-networked computer, so the code is not easily transferable, but i can get it posted if necessary.

thanks again.

07-19-2005, 11:49 AM
Since you're not using devfs, the major and minor device numbers on the device file are used to link up the device file and the driver.
You can do an "ls -l" in the /dev directory to see major and minor device numbers.

Having said that - here's the rest of what you'll need to know:

Linux Device Drivers, 2nd Edition (http://www.xml.com/ldd/chapter/book/index.html)