Minor numbers
To the best of my knowledge, dev_t number is still 16 bits with 8 most significant bits being the major number and the other 8 bits being the minor number; which of course means that minor numbers can only go up to
255. Has this limitation been some how addressed with 2.4? 256 devices per module, sometimes is not enough, especially if you are in the SAN environment; or when the 256 minors numbers are broken down to several ranges of numbers to address different types of special files. I don't see how this problem can be solved with dev_fs either. Anyone out there with a work-around or is proposing a solution? I believe that minor and major numbers for SUN and AIX are both 16 bits each (32 bits dev_t).
Thanks in advance for your input.
Thanks!
Sincerely,
Alex Chen
IBM SSD Device Driver Development
Office: 9000 S. Rita Rd 9032/2262
Email: [email protected]
Phone: (external) 520-799-5212 (Tie Line) (321)-5212
Quoted 3 lines
255. Has this limitation been some how addressed with 2.4? 256 devices per module, sometimes is not enough, especially if you are in the SAN environment; or when the 256 minors numbers are broken down to several
2.4 is using 16bit dev_t in kernel still. Application space sees a much larger dev_t so we can make the move in 2.5 very easily
Quoted 2 lines
work-around or is proposing a solution? I believe that minor and major numbers for SUN and AIX are both 16 bits each (32 bits
dev_t).
20:12 is more common
Quoted 11 lines · Alan Cox
Quoted 3 lines
255. Has this limitation been some how addressed with 2.4? 256 devices per module, sometimes is not enough, especially if you are in the SAN environment; or when the 256 minors numbers are broken down to several
2.4 is using 16bit
dev_tin kernel still. Application space sees a much largerdev_tso we can make the move in 2.5 very easilyQuoted 2 lines
work-around or is proposing a solution? I believe that minor and major numbers for SUN and AIX are both 16 bits each (32 bits
dev_t).20:12 is more common
Which is major, which is minor?
I have one (private) driver that requires around 5000 minors. (currently through some 20 majors) (Currently only just over half of these are physically installed....)
Roger.
Signature · 4 lines
** [email protected] ** http://www.BitWizard.nl/ ** +31-15-2137555 ** *-- BitWizard writes Linux device drivers for any device you may have! --* * There are old pilots, and there are bold pilots. * There are also old, bald pilots.
Quoted 3 lines
Quoted 1 line
20:12 is more common
Which is major, which is minor?
20bit major
Quoted 3 lines
I have one (private) driver that requires around 5000 minors. (currently through some 20 majors) (Currently only just over half of these are physically installed....)
Just use several. The split is a bit vague in modern OS's - because its really now heirarchical in many of them - eg the solaris controller, bus, unit, lun, .. thing.
I guess it went the way of classed addressing
Followup to: <[email protected]> By author: Alan Cox <[email protected]> In newsgroup: linux.dev.kernel
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
20:12 is more common
Which is major, which is minor?
20bit major
Surely you're jesting?
12 bit major, 20 bit minor is the only logical split. The need for minors (think individual disks) is much greater than the need for majors.
-hpa
Signature · 3 lines
<[email protected]> at work, <[email protected]> in private! "Unix gives you enough rope to shoot yourself in the foot." http://www.zytor.com/~hpa/puzzle.txt
Quoted 5 lines · Alan Cox
Quoted 3 lines
Quoted 1 line
20:12 is more common
Which is major, which is minor?
20bit major
Well, AIX 4.3 (and 4.[12] I think as well) uses 16:16, and they
are preparing for 32:32 when the kernel finaly goes fully 64-bit. I don't know enough about AIX 5.1 to know if they really did that or backed down on their promise (The kernel guys told me two years ago that they were going to push the full 64-bit migration, but I haven't heard anything since).
Joel
Signature · 5 lines
"We'd better get back, `cause it'll be dark soon, and they mostly come at night. Mostly." http://www.jlbec.org/ [email protected]