Skip to content
Open Sourceintermediate

What is the Linux Kernel?

Updated Nov 30, 20263 min readBased on official documentation
What is the Linux Kernel?

In short

The Linux kernel is the core part of the Linux operating system. It sits between the computer's hardware and the programs you run, and it manages the processor, memory, storage and devices. Its documentation is published openly on kernel.org.

What the kernel does

The kernel is the central program of an operating system. Every other program, from a shell to a web browser, asks the kernel for help when it needs to read a file, send data over a network or use the processor. The kernel decides who gets which resource and when.

Linux is a family of operating systems built around this kernel. Distributions such as Debian or Fedora add a set of tools, libraries and an installer on top of it. When people say "Linux" they usually mean the whole system, but the kernel is the part that talks directly to the hardware.

Why the documentation matters

The kernel is large and changes often, so its documentation is kept in the source tree itself. The documentation page at kernel.org/doc/html/latest/ is the top level of that tree. It is organised into groups, and each group serves a different reader.

The groups are roughly these. Some guides explain how to work with the development community and get a patch accepted upstream. Internal API manuals help developers who write kernel code that talks to other parts of the kernel. Development tools and processes cover general practices for kernel contributors. User-oriented documentation is for people who want the kernel to run well on a given machine, and for application developers who need the user-space interfaces.

There are also sections for firmware expectations, for specific processor architectures such as ARM64, RISC-V and x86, and for translations into several languages. The documentation itself says it is a work in progress, so some pages are older or not yet converted to the reStructuredText format.

How it works

A running system has two main zones. User space holds the programs you start. Kernel space holds the kernel, which has full access to the hardware. Programs cross into the kernel through system calls, which are requests such as opening a file or creating a process. The kernel checks the request, does the work and returns a result.

Because the kernel runs with broad privileges, bugs in it can affect the whole machine. That is one reason the kernel project has a strict process for reviewing and merging changes.

When to read the kernel docs

You rarely need the kernel documentation for everyday web or app work. It becomes useful when you write a device driver, tune a server for a specific workload, study a new processor port, or need to understand a user-space interface such as a system call. If you only want to run Linux, a distribution's own guide is usually a better start.

If you are new to operating systems in general, it helps to first learn what a process and a file descriptor are. Those ideas appear in almost every kernel topic.

Common mistakes

A common mistake is to treat the kernel and the distribution as the same thing. Two Linux systems can run the same kernel version and still differ a lot in their tools and settings. Another mistake is to read an old page as if it describes the current code. Because the documentation is still being reorganised, check the date and the section before you rely on a detail.

Finally, remember that the kernel docs describe the kernel, not the libraries your application uses. For library behaviour, read that library's own documentation.

Where to go next

Start with the user-oriented section if you want to tune a system. Move to the internal API manuals only when you need to write kernel code. The full index is on the documentation front page, and the project's linux-doc mailing list is the place to ask questions or help improve the text.

FAQ

Is the Linux kernel the same as Linux?

Not exactly. The kernel is the core that manages hardware and resources. Linux is usually used to mean a complete operating system, which includes the kernel plus tools and libraries from a distribution.

Who should read the kernel documentation?

It suits people who write drivers, work on kernel code, tune systems for specific hardware, or need details of user-space interfaces. Everyday application developers rarely need it.

Is the kernel documentation complete?

No. The project describes its documentation as a work in progress, and some older documents have not yet been converted or reorganised. Check the date of a page before relying on it.

Where can I help improve the kernel docs?

The documentation page invites improvements and points to the linux-doc mailing list at vger.kernel.org for people who want to help.

Sources

This page is based on the official documentation below. Read it for full detail.

Linux kernel — official documentation ↗

Linux kernel in the news

blozhikDeveloper news from across the web, explained. Every story links to its original sources.