NetBSD-Bugs archive

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

Re: lib/39215: getdevmajor()/major() types don't match



[major/minor numbers]
dholland%eecs.harvard.edu@localhost said:
> Well, in general they should be the same size as dev_t

There is no technical reason. As long as the information of
major/minor fits into the dev_t it is fine.
Major numbers are used as index into devsw, and minors into
device_t instance arrays. These are operations done at
runtime a lot, so one shouldn't use more than the processor
can handle natively.
Majors and minors are used only locally... not quite, there
is NFSv3 which transfers them explicitely, as 32-bit values
each. Would need some work to implement a translation layer.

best regards
Matthias




-------------------------------------------------------------------
-------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich

Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt,
Dr. Sebastian M. Schmidt
-------------------------------------------------------------------
-------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index