![]() |
| | #1 |
| Registered User Join Date: Jul 2005
Posts: 1
| tty driver development 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. |
| outoolcoe is offline | |
| | #2 |
| Registered User Join Date: Mar 2003
Posts: 3,956
| 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 |
| Codeplug is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help:how can I insert the driver files into a program using C++? | chenayang | C++ Programming | 0 | 07-28-2008 03:10 AM |
| Accessing Network Driver Functions directly from user application | rkanna | Linux Programming | 6 | 05-15-2007 10:47 PM |
| Linux (2.6.10+) device driver: multiple classes? | filker0 | Linux Programming | 3 | 09-26-2005 08:46 PM |
| Any adivce for driver development? | Jeremy G | A Brief History of Cprogramming.com | 3 | 07-27-2004 03:40 PM |