Basic Steps to registering character device driver
Basic Steps to registering character device driver 1) Create the object of structure named as dev_t which contains two things as major number and minor number. 2) Call function alloc_chardev_region() which is use to create device file by allocating major number and minor number implicitely. 3) If we call this function then there is no need to create device file explicitely. 4) At the time of removing device driver we have to call unregister_chardev_region() function. 5) Compile that driver and insert into kernel using insmod command. 6) We can check the list of devices which are loaded currently by the kernel by opening the file /proc/devices. 7) Major number and minor number gets display in our log file as /var/log/syslog. ------------------------------------------------------------------------- ///////////////////////////////////////////////////////////////// Device Driver Program: ///////////////////////////////////////////////////////////////// Program Name...