Re: Migrating to larger numbers

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 30 May 1999 16:59:59 +0100 (BST)


> > The above code does not rely on any particular number.
> > It just says that if the device number fits into 16 bits
> > then it is partitioned into major and minor in a particular way,
> > and if not it is partitioned in some other way.
>
> And so how do you distinguish between (0,2000) and (7,208)?

If you switch to say 16:16 then you need a legacy device. (For the more
sensible seeming 20:12 you need 4). These map old numbers onto new.
Conceptually 0:something is a multiplexor device for legacy device nodes.

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/