After introducing the preceding file operations, it is time to implement them in order to enhance the driver capabilities and expose the device's methods to the user space (by means of system calls or course). Each of these methods has its particularities, which we will highlight in this section.
Writing file operations
Exchanging data between kernel space and user space
This section does not describe any driver file operation but instead introduces some kernel facilities that you may use to write these driver methods. The driver's write() method consists of reading data from user space to kernel space, and then processing that data from the kernel. Such processing could be something like pushing the data to the...