Linux kernel
![]() |
| Tux, the Linux penguin |
The Linux kernel is a free computer operating system kernel initiated by Linus Torvalds in 1991. It is the kernel of the Linux operating system (also called GNU/Linux) and the Linux distributions, which are compatible in many ways with Unix. It was developed initially for the Intel 80386 processor but has since been ported to many other platforms. It is written almost entirely in C with some GNU C language extensions and assembly language.
| Table of contents |
|
2 Versions 3 Architecture 4 Portability 5 Licensing terms 6 Mascot 7 References 8 Resources |
The project was launched in 1991 with a famous post to the Usenet newsgroup comp.os.minix that includes this sentence:
History
"I'm doing a (free) operating system (just a hobby,
won't be big and professional like gnu) for
386(486) AT clones..."
The complete post can be found
here.
At the time, the GNU project had created many of the components required for a free operating system, but its own kernel, the Hurd, was conspicuously incomplete and unavailable. The BSD operating system had not yet freed itself from legal encumberances. This left a space for the Linux kernel to fill, and despite the limited functionality of the early versions it rapidly accumulated developers and users. Early on, Minix hackers contributed code and ideas to the Linux kernel, and today it has received contributions from thousands of programmers.
Originally Linux was only the name of the kernel. The term "kernel" properly refers to the low-level system software that provides a hardware abstraction layer, disk and filesystem control, multi-tasking, load-balancing, networking and security enforcement. A kernel is not a complete operating system (as the term is usually understood). A complete system built around the Linux kernel is commonly known as the Linux operating system, although some prefer to call the system GNU/Linux. People often confuse the kernel with the operating system, leading to many mistaken notions, e.g. the idea that Torvalds wrote/coordinates other parts of the system than the kernel.
Versions
Information
Torvalds has continued to release new versions of the kernel, consolidating contributions from other programmers and making changes of his own. All Linux releases with an even sub-version (the second component) are part of a stable series, namely: 1.0.x, 1.2.x, 2.0.x, 2.2.x, 2.4.x and the current 2.6.x, while releases with an odd sub-version, like the 2.5.x series, are development versions not intended for production use. While Torvalds continues to release the latest development versions, the maintenance of the older "stable" versions has been delegated to others, including David Weinehall (2.0), Marc-Christian Petersen (2.2), Marcelo Tosatti (2.4) and Andrew Morton (2.6). In addition to these "official" kernels, alternative "kernel trees" can be obtained from other sources. Distributors of complete operating systems typically maintain their own versions of the kernel, for example including drivers which have not yet been accepted into the official version.
Today Linux is a hybrid monolithic kernel. Device drivers and kernel extensions typically run in ring 0, with full access to the hardware, although some run in user space. Unlike standard monolithic kernels, device drivers are easily configured as modules, and loaded or unloaded while running the system. Also unlike standard monolithic kernels, device drivers can be pre-empted under certain conditions. This latter feature was added to handle hardware interrupts correctly, and to improve support for symmetric multiprocessing.
Stable Versions
Stable kernel releases were:Architecture
The complete source code of various versions of the Linux kernel can be browsed at http://lxr.linux.no.
While Linus Torvalds didn't originally set out to make Linux a portable operating system, it has evolved in that direction. Linux is now in fact one of the most widely ported operating system kernels (although NetBSD has been ported to even more different systems), running on systems as diverse as the iPAQ (a handheld computer) to the IBM S/390 (a massive, hugely expensive mainframe). Linux is intended to run as the main operating system on IBM's new Blue Gene supercomputer architecture when it is finished.
However, it is important to note that Linus's efforts were also directed successfully at a different sort of portability. Portability, according to Linus, was the ability to easily compile applications from a variety of sources on his system; thus Linux originally became popular in part because it required the least effort to get everybody's favorite GPLed and other open source applications running.
Linux currently runs on the following machine architectures:
Portability
A complete list of ports is at LiNUX Ports
Initially, Torvalds released Linux under a license which forbade any commercial exploitation. This was soon changed to the GNU General Public License (version 2 exclusively). This license allows distribution and even sale of possibly modified versions of Linux but requires that all those copies be released under the same license and be accompanied by source code.
He has publicly referred to licensing Linux under the GPL as the "best thing I ever did". [1]
One general question about the application of the GPL to Linux involves whether loadable kernel modules are considered "derived works" under copyright law, and thereby fall under the terms of the GPL. Torvalds has stated his belief that modules using only a limited, "public" subset of the kernel interfaces can sometimes be non-derived works, thus allowing some binary-only drivers and other modules not obeying the GPL. Not all kernel contributors agree with this interpretation, however, and even Torvalds agrees that many kernel modules are clearly derived works, and indeed he states that kernel modules ARE derivative "by default"; ultimately, such questions can only be resolved by a court.
Licensing terms
Mascot
The Linux mascot is a penguin named Tux, created by Larry Ewing.
References
- Torvalds, Linus; Diamond, David (2001). Just For Fun: The Story of an Accidental Revolutionary. HarperBusiness. ISBN 0066620724 (hardcover); HarperAudio ISBN 0694525391 (audio tape, abridged ed., read by David Diamond) - on the beginnings of the Linux kernel
- Revolution OS - a documentary on the history of Linux featuring several interviews with prominent hackers, including Torvalds
- LinkSys and binary modules, LWN.net Weekly Edition, October 16, 2003.
Resources
- The Linux Kernel Archives
- Kernel Traffic, a summary of the high-traffic Linux kernel mailing list
- Linux kernel modules programming guide.
- KernelTrap
- Linux Kernel Source Code Viewer
- Kernel Newbies Wiki.
- The Wonderful World of Linux 2.6; Joseph Pranevich; December 2003.
- Wonderful World of Linux 2.4; Joseph Pranevich; January 5, 2001.
- The Wonderful World of Linux 2.2; Joseph Pranevich; January 26, 1999.
- IBM: Compiling the Linux kernel.
