C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 07-19-2005, 08:50 AM   #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.
outoolcoe is offline   Reply With Quote
Old 07-19-2005, 11:49 AM   #2
Registered User
 
Codeplug's Avatar
 
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   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 12:03 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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