LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 02-12-2008, 06:43 PM   #1
archieval
Member
 
Registered: Apr 2007
Location: Philippines
Distribution: Kubuntu, Ubuntu, CentOS
Posts: 282

Rep: Reputation: 41
Question Is serial_core.c the tty core?


Hi everyone,

I have read about tty core in the last chapter of Linux device drivers 3rd edition. When I browsed my linux source tree, I have noticed drivers/serial/serial_core.c. This file is being used by the other files (i.e. uart00.c) on the same folder. I am wondering if this is the tty core that the book has mentioned. Although all the functions used which were preceeded by tty (i.e. tty_register_driver) were replaced by uart (i.e. uart_register_driver). If this is the tty core, is the naming convention in the file serial_core.c has changed?

Also if I am going to develop a serial driver, am I going to register it with the serial_core.c?

My distro is montavista linux pro 4.01, kernel version 2.6.10.

Thank you!
 
Old 02-14-2008, 05:42 AM   #2
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
I searched the sources of the 2.6.10 kernel and found these results:

Code:
[~/tmp/kernel] $ find . -exec grep -l tty_register_driver {} \;
./linux-2.6.10/arch/ppc/4xx_io/serial_sicc.c
./linux-2.6.10/arch/ia64/hp/sim/simserial.c
./linux-2.6.10/arch/alpha/kernel/srmcons.c
./linux-2.6.10/arch/um/drivers/line.c
./linux-2.6.10/arch/v850/kernel/simcons.c
./linux-2.6.10/arch/v850/kernel/memcons.c
./linux-2.6.10/fs/proc/proc_tty.c
./linux-2.6.10/include/linux/tty.h
./linux-2.6.10/include/linux/tty_driver.h
./linux-2.6.10/include/linux/proc_fs.h
./linux-2.6.10/drivers/net/wan/pc300_tty.c
./linux-2.6.10/drivers/net/wan/sdla_chdlc.c
./linux-2.6.10/drivers/s390/char/tty3270.c
./linux-2.6.10/drivers/s390/char/sclp_vt220.c
./linux-2.6.10/drivers/s390/char/con3215.c
./linux-2.6.10/drivers/s390/char/sclp_tty.c
./linux-2.6.10/drivers/s390/net/ctctty.c
./linux-2.6.10/drivers/char/rio/rio_linux.c
./linux-2.6.10/drivers/char/viocons.c
./linux-2.6.10/drivers/char/esp.c
./linux-2.6.10/drivers/char/vme_scc.c
./linux-2.6.10/drivers/char/isicom.c
./linux-2.6.10/drivers/char/synclinkmp.c
./linux-2.6.10/drivers/char/cyclades.c
./linux-2.6.10/drivers/char/ser_a2232.c
./linux-2.6.10/drivers/char/pty.c
./linux-2.6.10/drivers/char/pcmcia/synclink_cs.c
./linux-2.6.10/drivers/char/synclink.c
./linux-2.6.10/drivers/char/sx.c
./linux-2.6.10/drivers/char/serial167.c
./linux-2.6.10/drivers/char/riscom8.c
./linux-2.6.10/drivers/char/serial_tx3912.c
./linux-2.6.10/drivers/char/ChangeLog
./linux-2.6.10/drivers/char/epca.c
./linux-2.6.10/drivers/char/tty_io.c
./linux-2.6.10/drivers/char/pcxx.c
./linux-2.6.10/drivers/char/istallion.c
./linux-2.6.10/drivers/char/hvsi.c
./linux-2.6.10/drivers/char/mxser.c
./linux-2.6.10/drivers/char/rocket.c
./linux-2.6.10/drivers/char/stallion.c
./linux-2.6.10/drivers/char/vt.c
./linux-2.6.10/drivers/char/hvc_console.c
./linux-2.6.10/drivers/char/specialix.c
./linux-2.6.10/drivers/char/moxa.c
./linux-2.6.10/drivers/char/amiserial.c
./linux-2.6.10/drivers/char/ip2main.c
./linux-2.6.10/drivers/char/hvcs.c
./linux-2.6.10/drivers/serial/serial_core.c
./linux-2.6.10/drivers/serial/mcfserial.c
./linux-2.6.10/drivers/serial/crisv10.c
./linux-2.6.10/drivers/serial/68360serial.c
./linux-2.6.10/drivers/serial/68328serial.c
./linux-2.6.10/drivers/usb/gadget/serial.c
./linux-2.6.10/drivers/usb/serial/usb-serial.c
./linux-2.6.10/drivers/usb/class/cdc-acm.c
./linux-2.6.10/drivers/usb/class/bluetty.c
./linux-2.6.10/drivers/isdn/i4l/isdn_tty.c
./linux-2.6.10/drivers/isdn/capi/capi.c
./linux-2.6.10/drivers/macintosh/macserial.c
./linux-2.6.10/drivers/sbus/char/aurora.c
./linux-2.6.10/drivers/tc/zs.c
./linux-2.6.10/net/bluetooth/rfcomm/tty.c
./linux-2.6.10/net/irda/ircomm/ircomm_tty.c
I hope this helps to narrow it down a little.

greetings,
Elluva
 
Old 02-14-2008, 08:09 PM   #3
archieval
Member
 
Registered: Apr 2007
Location: Philippines
Distribution: Kubuntu, Ubuntu, CentOS
Posts: 282

Original Poster
Rep: Reputation: 41
hmm.. so it means, the one that has the tty_register_driver declaration, is the tty core? Ok I'll check on these files. Anyhow, what would be the use of the serial_core.c? Someone told me, I have to register my tty driver with that file.
 
Old 02-16-2008, 09:22 AM   #4
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
I don't know any details about this, but this site seems interesting...
 
Old 02-17-2008, 03:53 AM   #5
archieval
Member
 
Registered: Apr 2007
Location: Philippines
Distribution: Kubuntu, Ubuntu, CentOS
Posts: 282

Original Poster
Rep: Reputation: 41
OK I have checked on it. Hmm.. yeah its useful, are those structures still exist on the 2.6 kernel?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
a tty???? rasejo Linux - General 5 02-23-2009 01:01 AM
[SOLVED] Tty soplin Linux - General 2 05-11-2007 08:20 AM
tty magasem AIX 1 11-28-2006 05:47 AM
I it possible to kill a tty or find which tty is being using by which process? geletine Linux - Software 2 01-15-2006 08:40 AM
change tty => system crashes (ati driver/tty resolution) mosca Debian 6 08-05-2004 07:37 AM


All times are GMT -5. The time now is 11:36 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration