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 <FFDA8F4F-96E5-4AF0-9D0A-2A7C9E0F0A11%shagadelic.org@localhost>,
Jason Thorpe  <thorpej%shagadelic.org@localhost> 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.

christos



Home | Main Index | Thread Index | Old Index