Serial Driver Name Question (kernels 2.4.x)

From: Ivan Passos (
Date: Wed Jan 02 2002 - 21:07:47 EST

(Please CC your answer to me, as I'm not a subscriber of this list.)


By looking at tty_io.c:_tty_make_name(), it seems that the TTY
subsystem in the Linux 2.4.x kernel series expects to be
in the form "ttyX%d", even if you're not using devfs. I say that
because as of now the definition in serial.c for this variable is:

#if defined(CONFIG_DEVFS_FS) = "tts/%d";
#else = "ttyS";

, when it seems it should be:

#if defined(CONFIG_DEVFS_FS) = "tts/%d";
#else = "ttyS%d";

to work properly with the _tty_make_name() function (otherwise, in
case you're not using devfs, it'll just print "ttyS" without any
reference to the port number the msg is referring to).

This was spotted by a Cyclades customer who was getting overrun msgs

ttyC: 1 input overrun(s)

After he changed the to be "ttyC%d", he started to get
properly formatted msgs, such as:

ttyC39: 1 input overrun(s)

This problem would happen on any msg that used the function
tty_name() to get the TTY name, and after the change the problem
disappeared completely.

After checking the kernel code, I believe that he's found a bug that
should be fixed in all drivers that define

Please advise so that we may change the Cyclades driver to behave


Ivan Passos							 -o)
Integration Manager, Cyclades	-	 /\\
Project Leader, NetLinOS	-	_\_V
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Jan 07 2002 - 21:00:19 EST