tty driver development

This is a discussion on tty driver development within the Linux Programming forums, part of the Platform Specific Boards category; i'm writing my first tty driver for linux 2.4.18, and i am having trouble making the driver i'm creating become ...

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    1

    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
    Posts
    4,691
    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

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21