Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Sensor Series
      • 3D Printing
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
  • Guest Post Guidelines
  • Advertise
  • Subscribe

Kernel Architecture Of Linux (Part 7/15)

By Ashish Vara July 13, 2016

Kernel Architecture of Linux

Kernel is a small and special code which is the core component of Linux OS and directly interacts with hardware.  It is the intermediate level between software and hardware  which provides low level service to user mode’s components. It is fully developed in C language and file system architecture Moreover, it has different blocks which manage various operations. .In this tutorial we will learn about kernel architecture of Linux.

Kernel  runs a number of processes concurrently and manages the various resources. It is viewed as a resource manager when several programs run concurrently on a system. In this case, the kernel is an instance that shares available resources like CPU time, disk space, network connections etc.

Types of kernel

Kernel architecture is classified into two types:

  1. Monolithic
  2. Micro Kernel

Monolithic Kernels

In the  traditional monolithic kernel architecture, all the basic system services like process and memory management, interrupt handling etc. were packaged into a single module in kernel space. Module is an object file in which the whole code can be linked to kernel at run time. Huge space is consumed by traditional monolithic kernel and maintenance level is very low. It takes few hours for recompilation if some new feature is added because all the services are attached into one single module.

Modern monolithic kernel architecture consists of different modules which can be dynamically loaded and un-loaded. In this way maintainability is very easy because kernel needs to take care of only loaded module. Recompilation is not required upon added feature or some changes. Monolithic kernel is faster than micro kernel. 

Micro kernels

Monolithic kernel architecture supports the modular approach. All service modules are not run in kernel space as compared to monolithic kernel. Device driver management, protocol stack, file system etc are run in user space. This reduces the kernel code size and also increases the security.

Fundamental Architecture of Linux

 

Fig. 1: Image showing Fundamental Architecture of Linux

Architecture of kernel divided into main two parts:

  1. User Space
  2. Kernel Space

User Space

All user programs and applications are executed in user space. User Space cannot directly access the memory and hardware.  It accesses the hardware through kernel space. Processes or programs which are running in user space only access some part of memory by system call. Due to full protection, crashes in user mode are recoverable.

GNU C library provides the mechanism switching user space application to kernel space.

Kernel Space

All kernel programs are executed in kernel space. Kernel space accesses full part of memory and directly interacts with hardware like RAM, Hard disk etc It is divided in different blocks and modules which manage all operations (like file management, memory management, process management etc.) in kernel space and applications  running in user space. Kernel space consists of system call interface, Kernel (core component of Linux) and device module. 

System call interface is the intermediate layer between user space and kernel space. Each application which is run in user space can interface with kernel through system call interface. For example system call function on file operation are open ( ), write ( ), read ( ) etc.

Kernel is independent from hardware. It is common for all Hardware processors which are supported by Linux. You can run kernel on any processor like Intel, ARM, Atmel etc.  It acts as a resource manager in Kernel space and performs process management, file management, memory management, Interrupt handler , scheduling of process, etc.  It is a powerful structure which handles all kinds of operations.

Architecture of Kernel

Fig. 2: Image showing Full Architecture of Kernel

Kernel architecture follows modular approach. Each block in kernel (i.e. file management) is nothing but piece of code written in C language. Each block consists of powerful structure for handling various operations.

Process management

Process management is handling the management of various processes which are run at the same time. Process is an instance of ‘program in execution’ like open the file, access drive, access external resource (i.e. printer), etc.  and can be created and destroyed. Process management gives the information of what’s happening with a processand manages its priorities, such as which address should be assigned to process, file allocated to process, state of process (like running, waiting, stop) etc. I will explain in brief about process in another tutorial.

Memory management

Memory management is the most important part of kernel which  handles assignment of address space to process and application. Basically memory management assigns virtual memory instead of physical memory,whereby latter is the actual address space in RAM.  Don’t be confused between physical and virtual memory. Assignment of virtual address overcomes the limitation of assignment of physical memory. Conversion from physical address to virtual address is performed by MMU (Memory Management Unit which provides the protection of memory interference, sharing of memory and allocation of virtual memory. Physical address space is divided into some block of memory called frame thatcontains a number of pages.

Linux File System

The Linux file system is a hierarchically data structured tree which organizes the file system. File is simple data structure (in form of some byte of memory) which can store any kind of data like text, image, video, music and whatever you want in computer. Linux file system is organized as a directory in tree form. Directory is a collection or group of files. Two types of directory are available in Linux system: 1) root 2) Sub directory. Root is main directory and cannot be accessed without permission of super user. It is the parent and main directory in file system denoted as forward slash ( / ). Sub directory is under the root directory which can be created or renamed by user. Linux supports number of file types like ext2, ext3, device file, block file, networking file system etc. Each file system is stored in different a disk partition.


Filed Under: Tutorials

 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

Submit a Guest Post

submit a guest post

EE TECH TOOLBOX

“ee
Tech Toolbox: Power Efficiency
Discover proven strategies for power conversion, wide bandgap devices, and motor control — balancing performance, cost, and sustainability across industrial, automotive, and IoT systems.

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions.

  • Biasing an AC signal
  • Power amplifier stability
  • MOSFET thermal noise in Weak vs Strong inversion
  • Generation and transformation of waveform
  • Current version of LTspice not working on Windows 11?

RSS Electro-Tech-Online.com Discussions

  • restarting this Christmas project
  • desoldering
  • Unknown, to me, electric motor fitting
  • Can a small solar panel safely trickle-charge old NiMH AA batteries?
  • KiCad custom symbol definition correct approach

Featured Tutorials

Real Time Hardware Filter Design

  • Practical implementation of bandpass and band reject filters
    Practical implementation of bandpass and band reject filters
  • Practical application of hardware filters with real-life examples
    Practical application of hardware filters with real-life examples
  • A filter design example
    A filter design example
  • Types of filter responses
    Types of filter responses
  • What are the two types of hardware filters?
    What are the two types of hardware filters?
  • What are hardware filters and their types?
    What are hardware filters and their types?
More Tutorials >

Recent Articles

  • Taiwan Semiconductor adds 24-V automotive TVS devices
  • ST e-fuse controller enables fast, flexible automotive power protection
  • Posifa sensors improve low-flow accuracy in compact systems
  • Acopian releases low-profile power supplies rated to 900 W
  • Octavo Systems OSDZU-3 REF Development Platform

EE ENGINEERING TRAINING DAYS

engineering
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Sensor Series
      • 3D Printing
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
  • Guest Post Guidelines
  • Advertise
  • Subscribe