In this recipe, we will see how we can generate asynchronous SIGIO signals whenever our driver has new data to be read (or it's willing to accept new data from the user space).
Managing asynchronous notifications with fasync()
Getting ready
As done previously, we can still present our implementation using the chrdev_irq.c driver.
How to do it...
Let's see how to do it by following these steps:
- First of all, we have to add our new chrdev_fasync() method in the struct file_operations of our driver:
static const struct file_operations chrdev_fops = {
.owner...