From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757274Ab0KRM7g (ORCPT ); Thu, 18 Nov 2010 07:59:36 -0500 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:35227 "EHLO www.etchedpixels.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755557Ab0KRM7f (ORCPT ); Thu, 18 Nov 2010 07:59:35 -0500 Date: Thu, 18 Nov 2010 12:58:22 +0000 From: Alan Cox To: "Dr. Werner Fink" Cc: Greg KH , Lennart Poettering , Kay Sievers , Valdis.Kletnieks@vt.edu, linux-kernel , Randy Dunlap , Jiri Slaby Subject: Re: tty: add 'active' sysfs attribute to tty0 and console device Message-ID: <20101118125822.16718289@lxorguk.ukuu.org.uk> In-Reply-To: <20101118121256.GA19884@boole.suse.de> References: <20101116225619.5fa7ef8b@lxorguk.ukuu.org.uk> <20101116231023.GB27594@tango.0pointer.de> <25482.1290031268@localhost> <20101117235647.00766e32@lxorguk.ukuu.org.uk> <20101118012734.GA8558@kroah.com> <20101118014848.GA7873@tango.0pointer.de> <20101118015310.GA30480@kroah.com> <20101118110020.GA13871@boole.suse.de> <20101118112335.434de53a@lxorguk.ukuu.org.uk> <20101118121256.GA19884@boole.suse.de> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.18.9; x86_64-redhat-linux-gnu) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEWysKsSBQMIAwIZCwj///8wIhxoRDXH9QHCAAABeUlEQVQ4jaXTvW7DIBAAYCQTzz2hdq+rdg494ZmBeE5KYHZjm/d/hJ6NfzBJpp5kRb5PHJwvMPMk2L9As5Y9AmYRBL+HAyJKeOU5aHRhsAAvORQ+UEgAvgddj/lwAXndw2laEDqA4x6KEBhjYRCg9tBFCOuJFxg2OKegbWjbsRTk8PPhKPD7HcRxB7cqhgBRp9Dcqs+B8v4CQvFdqeot3Kov6hBUn0AJitrzY+sgUuiA8i0r7+B3AfqKcN6t8M6HtqQ+AOoELCikgQSbgabKaJW3kn5lBs47JSGDhhLKDUh1UMipwwinMYPTBuIBjEclSaGZUk9hDlTb5sUTYN2SFFQuPe4Gox1X0FZOufjgBiV1Vls7b+GvK3SU4wfmcGo9rPPQzgIabfj4TYQo15k3bTHX9RIw/kniir5YbtJF4jkFG+dsDK1IgE413zAthU/vR2HVMmFUPIHTvF6jWCpFaGw/A3qWgnbxpSm9MSmY5b3pM1gvNc/gQfwBsGwF0VCtxZgAAAAASUVORK5CYII= Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Example: running a boot script on /dev/console and after fsck > sulogin has to called to be able to asked the system admin. > Now the question is which console device the system admin is > waiting in front of (before /dev/ttyS0 or /dev/tty3270 or whatever). Ok that is a rather nebulous concept for embedded. The answer probably being that the true console device has no input facility. > I'm aware of. For using tty devices of the system console it requires > to have e.g. with my patch: > > bash> cat /proc/tty/consoles > tty0 -WU (ECp) 4:7 > > the `W' flag for write and the major:minor pair, beside this the `U' > flag indicates the tty can do an unblank operation, the `-' shows that > there is no read operation (never seen such a console tty). On an other Try the lp printer console if you want a test case > to detect the primary console device here. Why not just open /dev/console ? Alan