First page Back Continue Last page Overview Graphics
Creating a character driver
User-space needs
The name of a device file in /dev to interact with the device driver through regular file operations (open, read, write, close...)
The kernel needs
To know which driver is in charge of device files with a given major / minor number pair
For a given driver, to have handlers (“file operations”) to execute when user-space opens, reads, writes or closes the device file.