ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
In Linux kernel 2.4, we can have a maximum of:
Correct Answer: D — 256 character drivers and 256 block drivers at the same time
In Linux kernel 2.4, major numbers are 8-bit values (0–255), allowing up to 256 major numbers. Since character and block devices have separate major number spaces, it is possible to have 256 character drivers and 256 block drivers simultaneously. In kernel 2.6+, the dev_t type was expanded to 32 bits, greatly increasing the number of supported devices.