What is the Linux kernel? (2024)

  • Topics
  • Understanding Linux
  • What is the Linux kernel?

Published February 27, 2019

Overview

The Linux® kernel is the main componentof a Linux operating system (OS) and is the core interface between a computer’s hardware and its processes. It communicates between the 2, managing resources as efficiently as possible.

The kernel is so named because—like a seed inside a hard shell—it exists within the OS and controls all the major functions of the hardware, whether it’s a phone, laptop, server, or any other kind of computer.

9 reasons to explore Red Hat Enterprise Linux 9

What the kernel does

The kernel has 4 jobs:

  1. Memory management:Keep track of how much memory is used to store what, and where
  2. Process management:Determine which processes can use the central processing unit (CPU), when, and for how long
  3. Device drivers:Act as mediator/interpreter between the hardware and processes
  4. System calls and security:Receive requests for service from the processes

The kernel, if implemented properly, is invisible to the user, working in its own little world known as kernel space, where it allocates memory and keeps track of where everything is stored. What the user sees—like web browsers and files—are known as the user space. These applications interact with the kernel through a system call interface (SCI).

Think about it like this:The kernel is a busy personal assistant for a powerful executive (the hardware). It’s the assistant’s job to relay messages and requests (processes) from employees and the public (users) to the executive, to remember what is stored where (memory), and to determine who has access to the executive at any given time and for how long.

Where the kernel fits within the OS

To put the kernel in context, you can think of a Linux machine as having 3 layers:

  1. The hardware: The physical machine—the bottom or base of the system, made up of memory (RAM) and the processor or central processing unit (CPU), as well as input/output (I/O) devices such as storage, networking, and graphics. The CPU performs computations and reads from, and writes to, memory.
  2. The Linux kernel: The core of the OS. (See? It’s right in the middle.) It’s software residing in memory that tells the CPU what to do.
  3. User processes: These are the running programs that the kernel manages. User processes are what collectively make up user space. User processes are also known as just processes. The kernel also allows these processes and servers to communicate with each other (known as inter-process communication, or IPC).

Code executed by the system runs on CPUs in 1 of 2 modes: kernel mode or user mode. Code running in the kernel mode has unrestricted access to the hardware, while user mode restricts access to the CPU and memory to the SCI. A similar separation exists for memory (kernel space and user space). These 2 small details form the base for some complicated operations like privilege separation for security, building containers, and virtual machines.

This also means that if a process fails in user mode, the damage is limited and can be recovered by the kernel. However, because of its access to memory and the processor, a kernel process crash can crash the entire system. Since there are safeguards in place and permissions required to cross boundaries, user process crashes usually can’t cause too many problems.
Also, because the Linux kernel can continue to work during live patching, there's no downtime while patches are applied for security fixes.

Learn about Red Hat Enterprise Linux for production useIcon-Red_Hat-Directional-A-Black-RGB

What is the Linux kernel? (1)

How well do you know Linux?

Test your knowledge and earn badges in Legends of Linuxtrivia.

Why choose Red Hat?

At Red Hat, Linux is the foundation of everything we do. Red Hat is the second largest corporate contributor to the Linux kernel, bringing with it the experience and expertise of 25 years and a large community of partners, customers, and experts from across the industry. That’s a long relationship, with a history and level of experience that’s hard to come by.

The Linux kernel is open source, and open source is at the core of Red Hat’s values. Learn why we’ve built our company on our conviction that Red Hat® Enterprise Linux is the best.

Take our Linux assessment

Keep reading

Article

What is Linux?

Linux is an open source operating system that is made up of the kernel, the base component of the OS, and the tools, apps, and services bundled along with it.

Article

What is SELinux?

Security-Enhanced Linux (SELinux) is a security architecture for Linux®systems that allows administrators to have more control over who can access the system.

Article

What is the Linux kernel?

The Linux kernel is the main component of a Linux operating system (OS) and is the core interface between a computer’s hardware and its processes.

More about Linux

Products

A stable, proven foundation that’s versatile enough for rolling out new applications, virtualizing environments, and creating a more secure hybrid cloud.

Related articles

  • Understanding Linux
  • Migrate from CentOS Linux to Red Hat Enterprise Linux or CentOS Stream
  • Edge computing with Red Hat EnterpriseLinux
  • Red Hat Enterprise Linux migration process
  • Convert2RHEL: How to convert from CentOS Linux and Oracle Linux to Red Hat Enterprise Linux
  • Red Hat Enterprise Linux security
  • What's the difference between Fedora and Red Hat Enterprise Linux?​
  • What is a Linux certification?
  • What is high availability?
  • What is ERP?
  • ARM vs x86: What's the difference?
  • What is a Linux server?
  • What is an ARM processor?
  • Why run Linux on Google Cloud?
  • What is a golden image?
  • What is an image builder?
  • Why run Microsoft SQL Server on Linux?
  • What is SAP HANA (and why does it run on Linux)?
  • What is CentOS?
  • What is CentOS Stream?
  • What is Linux?
  • What is the SAP HANA migration?
  • What is SELinux?
  • What is the Linux kernel?
  • What is Linux kernel live patching?
  • What's the best Linux distro for you?
  • Why choose Red Hat for Linux?
  • Why run Linux on IBM Cloud
  • Linux for cloud computing
  • What to know about CentOS Linux EOL
  • Why run Linux on AWS?
  • Linux on Azure
  • What are CentOS replacements?

Resources

Podcast

Command Line Heroes Season 1, Episode 2:
"OS Wars part 2: Rise of Linux"

Keep exploring

CHECKLIST

Executive checklist: Modernize your SAP environment

DETAIL

Red Hat Enterprise Linux subscription guide

OVERVIEW

Reduce downtime for SAP HANA with Red Hat technology

E-BOOK

Experience Red Hat Enterprise Linux

E-BOOK

How to manage Linux environments with modern tools and techniques

What is the Linux kernel? (2024)
Top Articles
Kratos
How to enable TLS 1.2 or higher
Best Free HD Movies Download Sites - MiniTool MovieMaker
The Pope's Exorcist Showtimes Near Emagine Royal Oak
Paradisehilltv
Naviance Hpisd
Used Safari Condo Alto R1723 For Sale
Virginia Henderson: Need Theory Study Guide
Reading Craigslist Pa
Free Puppies In Arkansas Craigslist
Sharp Urgent Care Wait Times
Huffington Horoscope Cancer
Critiques de la série Z Nation
Premier Tattoo Company Westland Services
Unit 7 Lesson 2 Joshua's Law
Dumb Money Showtimes Near Regal Eastview Mall
1 P.m. Pdt
伊南 娜
KMS ver. 1.2.369 – Tactical Relay & Super Haste!
craigslist: panama city, FL jobs, apartments, for sale, services, community, and events
Cheley Packing List
Tierra De Esperanza Capítulo 46 Tokyvideo
Skip The Games Anchorage
Subway Surfers Unblocked Wtf
Death Note: 15 Details About L You'd Only Know If You Read The Manga
What happened to Richard Gere's second wife Carey Lowell? - where is she now? | HELLO!
Fort Bragg Cif Appointment
Activating the DigiD app outside the Netherlands | NetherlandsWorldwide
Best Car Wash Soap for 2022
Quiktrip Maple And West
Ferguson Employee Pipeline
Citibank Branch Locations In Orlando Florida
Großbritanniens Botschafterin: „Europäische Armee neben Nato ist nicht sinnvoll“
Plane 123Movie
Chs.mywork
Fredericksburg Free Lance Star Obituaries
Farmers And Merchants Bank Broadway Va
logo!: #ThatGirl: Hilfe, muss ich perfekt sein?!
Magicseaweed Encinitas
Haverhill, Suffolk - Suffolk Village Info
Rub And Tug Map
Lord Spoda Age
Bloxburg Bedroom Inspiration: Sweet & Cozy Designs
Bobby Shmurda Net Worth 2022 Forbes
Ati Nurses Touch The Leader Case 4
Cu Oit
Rubios Listens Com
Infinite Weight Ark
Holly Holm Camel Toe
Dragon Square Shield Osrs
Legend Of Krystal Forums
Latest Posts
Article information

Author: Tyson Zemlak

Last Updated:

Views: 6222

Rating: 4.2 / 5 (43 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Tyson Zemlak

Birthday: 1992-03-17

Address: Apt. 662 96191 Quigley Dam, Kubview, MA 42013

Phone: +441678032891

Job: Community-Services Orchestrator

Hobby: Coffee roasting, Calligraphy, Metalworking, Fashion, Vehicle restoration, Shopping, Photography

Introduction: My name is Tyson Zemlak, I am a excited, light, sparkling, super, open, fair, magnificent person who loves writing and wants to share my knowledge and understanding with you.