File Operations on a Device - English

335 visits



Outline:

File operations such as open and close on a device About cdev.h header file About struct file_operations About mydevice_open() and mydevice_release() function About cdev_init()and cdev_add() function About cdev_del() function Working of the above function Executing the file operations with a user program Compile the driver Display the output message of open and close of a new device