Linux Device Driver Programming Lecture 40- Understanding error codes
Understanding error codes Linux error codes Before implementing the read method, let me quickly explain the error codes (shown in Figure 1) which we should be using…
Understanding error codes Linux error codes Before implementing the read method, let me quickly explain the error codes (shown in Figure 1) which we should be using…
Understanding read method In this article, let's understand our driver's read method implementation. What is read? The user-level process executes a read system call to read…
Character driver cleanup function implementation In this article, let's implement the character driver clean-up function. As you know, the clean-up function gets executed whenever you unload the…
Creating Device files In a previous couple of articles, we did these two things. Creating a device number and making a character device registration with the VFS…
File operations structure initialization In this article, let's discuss the next step is to initialize this file operations variable. This is just a simple structure variable initialization.…
Implementing file operation methods In the previous article, we explored character driver file operation methods. In this article, let's implement all those drivers file operation methods. The best…