What is major and minor number ?
In : BCA Subject : UNIX and Shell ProgrammingThe kernel uses the minor number to figure out which device is being referenced to.
You can either acquire a direct pointer to your device from the kernel or utilise the minor number as an index into a local array of devices, depending on how your driver is designed.
In any case, the kernel has little knowledge about minor numbers other than the fact that they correspond to devices implemented by your driver.