Skip to contentSkip to conversation

assignment of major number to serial driver -2.6.x kernels

DISCUSSION V. ANANDA KRISHNAN 3 participants 3 messages Jul 19, 2005 – Jul 20, 2005

lore
Share & tools
lore
#0 lore raw

Hi All,

I would like to know whether the usage of 253 as major (device) number
in serial port drivers is restricted in 2.6.x kernels. I am asking this question, though the documentation tells the driver developers that 253 is a reserved major number, 2.6.x Linux kernels can accommodate more than 255.

Also I would like to know the procedure (and related info) to apply
for getting a static number (major/minor) for devices in device drivers. Is this practice continued still?

Thanks for your help.

Regards,
V. Ananda Krishnan

#1 lore raw
Quoted 7 lines

Hi All,

I would like to know whether the usage of 253 as major (device) number
in serial port drivers is restricted in 2.6.x kernels. I am asking this question, though the documentation tells the driver developers that 253 is a reserved major number, 2.6.x Linux kernels can accommodate more than 255.

Majors 240 - 254 are reserved for private use, e.g. cooking@home; nothing to be seen in mainline drivers.
As for majors >255, you should at best try :) The dev number handling is there - I am able to mknod blah c 1234 0.

#2 lore raw
In reply to V. ANANDA KRISHNAN
Quoted 3 lines · V. ANANDA KRISHNAN

Also I would like to know the procedure (and related info) to apply
for getting a static number (major/minor) for devices in device drivers. Is this practice continued still?

If you want device nodes you still need device numbers (www.lanana.org)