I read some material on major and minor numbers and have doubts in it. What I understood:
- driver has one major number associated with it due to register_chrdev_region().
- mknod /dev/hello1 -c 123 32 will create device file with major number 123 and when application opens /dev/hello1 it searches driver with major number same as /dev/hello1.
- multiple device file can be associated with one driver. and none of the two files in /dev will share same pair of major and minor number.
- now some modern operating systems allows drivers with same major numbers. Now in this case how mapping will work?