Messages in this thread | | | Date | Sun, 30 May 1999 14:44:22 -0700 | From | "H. Peter Anvin" <> | Subject | Re: Migrating to larger numbers |
| |
Alan Cox wrote: > > > > 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. >
But 0 isn't that. I suggested making 0xffff the legacy device. That was the point I was trying to make.
I'd still like to suggest a 64-bit dev_t.
-hpa
- 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/
| |