


When an operation is performed on the file, the minor number of the device can be identified from the inode structure that is passed into the module. When different devices to be controlled by the same module are created using mknod, different minor numbers are provided. One kernel module will be identified by the major number and the different devices that can be controlled controlled by the module will have different minor numbers. This is implemented using the concept of major and minor numbers. The same kernel module can be used to associate functionality to different devices. In this second part we will discuss some of the advanced topics related to writing Linux device driversĪssociating multiple devices to same module – method 1 The first part of this article is available here.
