tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: introducing devmajor_t/devminor_t

In article <>,
Jason Thorpe  <> wrote:
>On Jan 15, 2009, at 1:46 PM, Matthias Drochner wrote:
>> Here are patches which make major()/minor() return a
>> 32-bit value again, which avoids 64-bit arithmetics
>> where major and minor numbers are used as array
>> indices. This would also make sure that device
>> unit numbers in drivers are still plain integers,
>> so no PRI64s are needed to print out device instances.
>> I've introduced new type names for this. This doesn't
>> make a difference technically but serves as a kind
>> of comment. (Some OSes have this too, or major_t/minor_t,
>> so the idea is not that exotic.)
>Yes, please.

I am fine with it too.


Home | Main Index | Thread Index | Old Index