Re: Opinions on removing /proc/tty?
From: Russell King
Date: Sun Jul 09 2006 - 15:46:12 EST
On Sun, Jul 09, 2006 at 03:26:19PM -0400, Albert Cahalan wrote:
> There are 16 tty major numbers (as of the Linux 1.1 kernel,
> or thereabouts) with 256 minors each, and the names are 8
> characters long. That makes for a 32 KiB file; procps will
> verify the length. Major numbers are to be stored in the
> following order:
>
> 2,3,4,5,19,20,22,23,24,25,32,33,46,47,48,49
>
> The structure is thus like this:
>
> char psdevtab[16][256][8]
So it basically breaks on 2.x kernels because (eg) you don't include major
204 as a tty major. Plus, if you insist that there are only N tty major
numbers, you break as soon as another tty major gets added.
Try again.
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 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/