Posts

Showing posts from October, 2012

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

Linux Device Drivers Part - 2 : System Memory, Static Modules and Dynamic Modules

Image
Before proceeding further, I strongly recommend you to watch Part-1 of Linux Device Drivers from MrTechpathi tutorials . In this part we will learn about following topics. System Memory Kernel Space and User Space Kernel Modules : Static Modules and Dynamic Modules So lets start with our first topic 1. System Memory This topic is choosen to completely understand user space and kernel space. Every system has certain amount of memory. This memory consists of RAM (Random Access Memory) cells, whose contents can be accessed (i.e., read and written to) at extremely high speeds but are retained only temporarily (i.e., while in use or, at most, while the power supply remains on). Coming to the purpose of memory, it holds programs and data that are currently in use and thereby serve as a high speed mediumbetween the CPU (central processing unit) and the much slower storages like hard disk drives (HDDs). This System memory in Linux can be divided into two distinct region

Linux Device Drivers Part - 1 : What is Linux Device Driver ?

Image
From today, we  will be discussing about Linux Device Drivers which are very useful for Device Driver programmers. Linux has more future and those who learn more on Linux Kernel and Device drivers will benefit a lot. Linux is one of the best open source operating system which is available to everyone. It is majorly used operating system in smart phones and Embedded Systems these days. Yes all, Android phones have Open source Linux Operating system in it which is customized according to Smartphone vendor needs. So, lets start with Linux Device Driver Programming.. Scope of this Tutorial To gain in depth knowledge on Linux Device Driver. From now on, for your convenience, we will be discussing this topic part by part. In this part we will know about What is a Linux Device Driver ? So What is a Linux Device Driver ? Linux Device drivers are distinct “black boxes” that make a particular piece of hardware respond to a well-defined internal programming interface.They c