Re: How do I choose an arbitrary minor number for my tty device?

From: Alan Cox
Date: Thu Nov 18 2010 - 15:57:59 EST


On Thu, 18 Nov 2010 14:43:17 -0600
Timur Tabi <timur@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/