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

From: Russell King
Date: Thu Oct 07 2004 - 04:10:59 EST


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
-
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/