The interested reader can refer <miscellaneous device drivers in linux kernel> for an introduction. The below code provides a sample code example for a miscellaneous device driver
The below output of /dev folder shows the creation of a miscellaneous device. the minor number allocated is 120
The earlier sample code is modified to open the miscellaneous device file and is shown below
The output of the sample code access to the miscellaneous device driver is shown below
In the next article, we will discuss a platform device driver
Pingback: Miscellaneous Device drivers in Linux | Hitch Hiker's Guide to Learning