Posts

Showing posts with the label Linux Device Control

Linux Device Drivers Part - 6 : Loading Listing and Unloading Kernel Modules

Image
In this part , we are going to discuss about 1. Loading Kernel modules 2. Listing  kernel modules 3. Unloading kernel modules Before going ahead with these topics, I strongly recommend you to watch my earlier videos on Linux Device Driver Part 1 to 5. Fine, lets start with our first topic 1. Loading Kernel modules  In earlier session " Linux Device Drivers Part-5 ", we learnt how to build a sample helloworld Linux Kernel module. In this session we will see how to load that sample module into the kernel. We have two kernel utilities which does the trick of loading modules into the kernel. We have two utilities to perform this task 1. insmod 2. modprobe In following slides we will discuss about these utilities, their syntax and usage So,What is insmod and what does it do ? Insmod is a kernel utility that installs loadable Kernel modules into kernel.         It actually loads the module code and data into the kernel land, it links any unresolved sym

Linux Device Drivers Part - 3 : Role of Linux Kernel

Image
As a prerequisite, I strongly recommend you to watch Part-1 and Part-2 of Linux Device Drivers from MrTechpathi Tutorials . In this part we will learn about Role of Linux Kernel. Why this topic is choosen ? This topic is choosen to understand the exact role played by Kernel to provide various services. In this part, I will just brief about kernel roles,     eventually we will be discussing them in detail in upcoming parts. In a Linux system, several concurrent processes attend to different tasks. Each process asks for system resources like computing power, memory, "network connectivity", or some other resource. Who will be serving these resources ?  Yes its the Kernel. Kernel  is the big chunk of executable code in charge of handling all these requests. Although distinction between the different kernel tasks isn't always clearly marked, the kernel's role can be split into the following parts. Process management Memory management File Systems