Linux - NewbieThis forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hey guys, I've got a couple questions related to the /dev/console special file.
From what I've read online, it seems that /dev/console used to be a simple symlink to ttyS0, or whatever was passed to the kernel with the "console=" parameter. In recent kernels, /dev/console is managed directly by the kernel. Does anyone know the relevant files in the kernel source that deal with setting up/configuring /dev/console?
On the current systems I am working with, the kernel command line parameters in grub.conf look something like this:
kernel /vmlinuz ro root=/dev/md2 console=tty0 console=ttyS0,115200n8r
I have noticed that echoing text to /dev/console and /dev/ttyS0 does not always have the same effect. For one, it seems that writes to /dev/console ignore the "clocal" stty flag, but honor the "crtscts" flag. Second, if I have "co:2345:respawn:/sbin/agetty -h ttyS0 115200 vt100" such that agetty is running with flow control on, writes to /dev/console behave differently in this way:
* writes are buffered (looks like a ~4096 character buffer)
* once the buffer becomes full, writes block until CTS is asserted
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.