Thread: tty driver development

  1. #1
    Registered User
    Join Date
    Jul 2005

    tty driver development

    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.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    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


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 0
    Last Post: 07-28-2008, 03:10 AM
  2. Replies: 6
    Last Post: 05-15-2007, 10:47 PM
  3. Linux (2.6.10+) device driver: multiple classes?
    By filker0 in forum Linux Programming
    Replies: 3
    Last Post: 09-26-2005, 08:46 PM
  4. Any adivce for driver development?
    By Jeremy G in forum A Brief History of
    Replies: 3
    Last Post: 07-27-2004, 03:40 PM