lkml.org 
[lkml]   [1999]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.096 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site