lkml.org 
[lkml]   [2010]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How do I choose an arbitrary minor number for my tty device?
On Thu, 18 Nov 2010 14:43:17 -0600
Timur Tabi <timur@freescale.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


\
 
 \ /
  Last update: 2010-11-18 22:01    [W:0.156 / U:0.676 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site