Linux Device Drivers | Part 4 | Read Write from a driver

I think you are now familiar with insmod and rmmod. Now let’s try to make a little complex driver. A driver which can write on memory and read from memory. For this we need to insmod the driver, then open the driver and read/write. After the operations are finished we need to close the driver. […]

Linux Device Drivers | Part 3 | Hello World

Let’s build our first simple driver. The HelloWorld driver. This is the code of the HelloWorld driver. This is the .C code for the HelloWorld driver. When you insmod the driver, “Hello World!” will print. and when you rmmod the driver, “Good Bye” will print. Since this is a Linux driver file or Kernel module, […]

Linux Device Drivers | Part 2 | Understanding Linux

  Splitting the kernel Alright, we know that the Kernel is the core of the OS. So lets see what are the things the Kernel do for the OS. 01. Process Management The kernel will manage all processors which happening in the OS. 02. Memory Management  The Linux Kernel has a ability to process on […]

Linux Device Drivers | Part 1 | Introduction

A device is an impotent part of our day-to-day life. For example, think about a printer, it can print your documents. But, without a printer driver, it does not work properly. So, let’s talk about how to build your own driver for Linux. Introduction The advantage of free operating systems is, anyone can do anything […]