[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101118205647.677404ec@lxorguk.ukuu.org.uk>
Date: Thu, 18 Nov 2010 20:56:47 +0000
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Timur Tabi <timur@...escale.com>
Cc: Greg KH <gregkh@...e.de>, Arnd Bergmann <arnd@...db.de>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Scott Wood <scottwood@...escale.com>,
Stuart Yoder <stuart.yoder@...escale.com>
Subject: Re: How do I choose an arbitrary minor number for my tty device?
On Thu, 18 Nov 2010 14:43:17 -0600
Timur Tabi <timur@...escale.com> wrote:
> Greg KH wrote:
> >> > One last question. If I create multiple TTY devices, how do I tell the kernel
> >> > which one should be used for the console?
>
> > On the command line.
>
> Is there a way to do it in the driver itself? Getting the boot loader to
> identify the specific byte channel for stdout isn't trivial. It'd be nice if
> the driver could tell the tty layer, "BTW, this use this for the default console".
You can - provide the required method in your console driver and it'll
get used by /dev/console. Funnily enough a lot of other platform and
consoles need that too.
Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists