Re: [PATCH] Console: fall back to /dev/null when no console is availlable

Russell King
2004-10-07T09:08:14Z

On Thu, Oct 07, 2004 at 10:18:51AM +0200, Geert Uytterhoeven wrote:
> What about letting the kernel open the console without going through
> /dev/console? Since the kernel knows /dev/console is the device with major 5
> minor 1, why can't it just open (5, 1)? Then we don't need a /dev/console node,
> and things will never break.

Famous last words. What about the case where you don't have a console
device registered (eg in the case of an embedded device) ? Currently,
opening /dev/console fails in that circumstance.

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core