Linux Kernel Article Index for
Linux Kernel
Articles about
Linux Kernel
Website Links For
Linux
 

Information About

Linux Kernel




  Caption Running Linux Kernel 2611, Knoppix 38 booting
  Developer Linus Torvalds (author) and many others
  Latest Release Version 26226
  Latest Release Date 31 August 2007 1
  Latest Preview Version 2623-rc4
  Latest Preview Date 28 August 2007 2
  Genre Kernel
  License GNU General Public License
  Website http://kernelorg/




The Linux kernel is a Unix-like operating system Kernel . It is the namesake of the Linux family of operating systems. Released under the GNU General Public License (GPL) and developed by contributors worldwide, Linux is one of the most prominent examples of Free And Open Source Software .

Linux was written by Linus Torvalds in 1991. Early on, the Minix community contributed code and ideas to the Linux kernel. At the time, the GNU Project had created many of the components required for a Free Software operating system, but its own kernel, GNU Hurd , was incomplete and unavailable. The BSD operating system had not yet freed itself from legal encumbrances. This meant that despite the limited functionality of the early versions, Linux rapidly accumulated developers and users who adopted code from those projects for use with the new operating system. Free as in Freedom by Sam Williams. O'Reilly books, 2002 Today the Linux kernel has received contributions from thousands of programmers.


HISTORY

See Also: History of the Linux kernel



In April 1991, Linus Torvalds, then 21 years old, started working on some simple ideas for an operating system. He started with a Task Switcher in Intel 80386 assembly and a Terminal Driver . Then, on, 25 August 1991, Torvalds posted to ''comp.os.minix'':



After that, many people contributed code to the project. By September 1991, Linux version 0.01 was released. It had 10,239 lines of code. In October 1991, Linux version 0.02 was released.4

In December 1991, Linux 0.11 was released. This version was the first to be Self-hosted - Linux 0.11 could be compiled by a computer running Linux 0.11. When he released the next version, Torvalds adopted the GNU GPL over his previous self-drafted license, which did not permit commercial redistribution.5

A newsgroup ''alt.os.linux'' was started, and on January 19 1992 , the first post to alt.os.linux was made. On March 31 1992 , alt.os.linux became ''comp.os.linux''.

The X Window System was soon ported to Linux. In March 1992, Linux version 0.95 was the first to be capable of running X. This large version number jump (from 0.1x to 0.9x) was due to a feeling that a version 1.0 with no major missing pieces was imminent. However, this proved to be somewhat overoptimistic, and from 1993 to early 1994, 15 development versions of version 0.99 appeared.

On March 14 1994 , Linux 1.0.0 was released, with 176,250 lines of code. In March 1995, Linux 1.2.0 was released (310,950 lines of code).

Linus decided, on May 9 1996 , to adopt Tux the penguin as mascot for Linux.

Version 2 of Linux, released on June 9 , 1996 , was a landmark. Strong development continued:



PRONUNCIATION

In 1992, Torvalds explained how he pronounces the word ''Linux'':

}}


Torvalds has made available an audio sample which indicates his own pronunciation, in English and Swedish.6 However, an interview from the 2001 documentary '' Revolution OS '' indicates that his preferred pronunciation has slightly changed.

Many English speakers tend to pronounce the name as or .


LEGAL ASPECTS


Licensing terms


Initially, Torvalds released Linux under a license which forbade any commercial exploitation. This was soon changed to the GNU General Public License (GPL). This license allows distribution and sale of possibly modified and unmodified versions of Linux but requires that all those copies be released under the same license and be accompanied by the complete corresponding source code.

Torvalds has described licensing Linux under the GPL as the "best thing I ever did."7


GPL version 3





Loadable Kernel Modules and firmware


It is debated whether graphics drivers are heavily discussed. Ultimately, such questions can only be resolved by a court.

One point of licensing controversy is Linux's use of Firmware " Binary Blob s" to support some hardware devices. Richard Stallman claims that these blobs make Linux partially Non-free Software , and that distributing Linux may even be violating the GPL (which requires "complete corresponding source code" to be available).12


Trademark


Linux is a registered Trademark of Linus Torvalds in the United States and some other countries. This is the result of an incident in which William Della Croce, Jr., who was not involved in the Linux project, trademarked the name and subsequently demanded Royalties for its use. Several Linux backers retained legal counsel and filed suit against Della Croce, who agreed in 1998 to assign the trademark to Torvalds.


SCO litigation


In March 2003, the SCO Group (SCO) filed a Lawsuit against IBM claiming that IBM had violated copyrights that SCO claimed to hold over the Unix source code, by contributing portions of that code to Linux. Additionally, SCO sent letters to a number of companies warning that their use of Linux without a license from SCO may be a violation of copyright law, and claimed in the press that they would be suing individual Linux users. This controversy has generated lawsuits by SCO against Novell , DaimlerChrysler (partially dismissed in July, 2004), and AutoZone , and retaliatory lawsuits by Red Hat and others against SCO.

In early 2007 SCO filed the specific details of the purported copyright infringement. Despite previous claims that SCO was the rightful owner of 1 million lines of code, they specified only 326 lines of code, most of which were uncopyrightable {Link without Title} .
In August 2007, the court in The Novell Case ruled that SCO did not actually own the Unix copyrights to begin with. {Link without Title}


TECHNICAL FEATURES


Linux supports true Preemptive Multitasking (both in User Mode and Kernel Mode ), Virtual Memory , Shared Libraries , Demand Loading , shared Copy-on-write executables, Memory Management , the Internet Protocol Suite , and Threading .


Architecture


Linux is a Monolithic Kernel . Device Driver s and kernel extensions run in Kernel Space ( Ring 0 ), with full access to the hardware, although some exceptions run in User Space . Unlike Microsoft Windows , the Graphics System most people use with Linux doesn't run in the kernel.

Kernel Mode Preemption allows device drivers to be preempted under certain conditions. This feature was added to handle Hardware Interrupt s correctly and improve support for Symmetric Multiprocessing (SMP). Preemption also improves Latency , increasing responsiveness and making Linux more suitable for real-time applications.

The fact that Linux is a monolithic kernel rather than a Microkernel was the topic of the Tanenbaum-Torvalds Debate between Andrew S. Tanenbaum and Linus Torvalds . The debate started in 1992 about Linux and kernel architecture in general on the Usenet discussion group comp.os.minix.
Tanenbaum argued that microkernels are superior to monolithic kernels and that therefore Linux is Obsolete . Unlike traditional monolithic kernels, device drivers are easily configured as Loadable Kernel Module s, and loaded or unloaded while running the system. This subject was revisited on 9 May 2006 , and on 12 May 2006 Tanenbaum authored a position statement.


Kernel panic


See Also: Kernel panic



In Linux, a "panic" is an unrecoverable system error detected by the kernel as opposed to similar errors detected by User Space code. It is possible for kernel code to indicate such a condition by calling the panic function located in the header file sys/system.h. However, most panics are the result of unhandled processor Exceptions in kernel code, such as references to invalid memory addresses. These are typically indicative of a Bug somewhere in the call chain leading to the panic. They can also indicate a failure of hardware, such as a failed RAM cell or errors in arithmetic functions in the processor caused by a Processor Bug , overheating/damaged processor, or a Soft Error .


Programming languages


Linux is written in the version of the C Programming Language supported by GCC (which has introduced a number of extensions and changes to standard C), together with a number of short sections of code written in the Assembly Language (in GCC's "AT&T-style" syntax) of the target architecture. Because of the extensions to C it supports, GCC was for a long time the only compiler capable of correctly building Linux. Recently, Intel claims to have modified its C compiler so that it is also capable of correctly compiling it.http://www.pyrillion.org/index.html?showframe=linuxkernelpatch.html

Many other languages are used in some way, primarily in connection with the kernel Build process (the methods whereby the bootable image is created from the sources). These include Perl , Python , and various Shell Script ing languages. Some drivers may also be written in C++ , Fortran , or other languages, but this is strongly discouraged. Linux's build system only officially supports GCC as a kernel and driver compiler.


Portability

booting kernel]]
See Also: Linux kernel portability and supported architectures



While not originally designed to be Portable , Linux is now one of the most widely ported operating system kernels, running on a diverse range of systems from the IPAQ (a handheld computer) to the IBM System Z9 (a massive Mainframe server that can run hundreds or even thousands of concurrent Linux instances). Linux runs as the main operating system on IBM's Blue Gene Supercomputer s. As of June 2007 , Linux is the OS on more than 75% of systems on the Top 500 supercomputers list.13


Virtual machine architectures

''See Comparison Of Virtual Machines for more details on product support for Linux.''

''See Hypervisor for more details on terminology used with virtual machines.''

The Linux kernel has extensive support for and runs on many virtual machine architectures both as the ''host'' operating system and as a ''client'' operating system. The Virtual Machines usually emulate Intel X86 family of processors, though in a few cases PowerPC or AMD processors are also emulated.


Supported binary formats


Linux 1.0 supported only the A.out binary format. The next stable series (Linux 1.2) added support for Executable And Linkable Format (ELF), which simplifies the creation of Shared Libraries (used extensively by modern Desktop Environment s like KDE and GNOME ldd /usr/bin/kwin lists 40 shared libraries (kwin 3.5.5a); ldd /usr/bin/gnome-panel lists 68 (gnome-panel 2.14.3).). ELF is the default format used by Gcc since around gcc 2.7.014, so a.out is now rarely if ever used, and ELF is now the primary binary format.

Linux supports many other binary formats, including Binfmt_misc for associating files to a program (such as an Interpreter ) to run or display that file.


Estimated cost to redevelop


The cost to redevelop the Linux kernel version 2.6.0 in a traditional proprietary development setting has been estimated to be US$612M (467M €) in 2004 prices using the COCOMO man-month estimation model.http://www.dwheeler.com/essays/linux-kernel-cost.html In 2006, a study funded by the European Union put the redevelopment cost of kernel version 2.6.8 significantly higher, to 882M € (US$1.14B). Economic impact of FLOSS on innovation and competitiveness of the EU ICT sector , Table 3 on page 50.


VERSIONS


Further developing his own code and integrating changes made by other programmers, Linus Torvalds keeps releasing new versions of the Linux kernel. These are called "vanilla" kernels, meaning they have not been further modified by anyone. Many Linux operating system vendors modify the kernels of their product, mainly in order to add support for drivers or features which have not officially been released as stable, while some distributions rely on vanilla kernels.


Version numbering


The version number of the Linux kernel currently consists of four numbers, following a recent change in the long-standing policy of a three-number versioning scheme. For illustration, let it be assumed that the version number is composed thus: A.B.C {Link without Title} (e.g. 2.2.1, 2.4.13 or 2.6.12.3).





Also, sometimes after the version there will be some more letters such as 'rc1' or 'mm2'. The 'rc' refers to Release Candidate and indicates a non-official release. Other letters are usually (but not always) the initials of a person. This indicates a Development Branch of the kernel by that person. e.g. ck stands for Con Kolivas , ac stands for Alan Cox , whereas mm stood for Andrew Morton .

The development model for Linux 2.6 was a significant change from the development model for Linux 2.5. Previously there was a stable branch (2.4) where only relatively minor and safe changes were merged, and an unstable branch (2.5), where bigger changes and cleanups were allowed. This meant that users would always have a well-tested 2.4 version with the latest security and bug fixes to use, though they would have to wait for the features which went into the 2.5 branch. The downside of this was that the "stable" kernel ended up so far behind that it no longer supported recent hardware and lacked needed features. In the late 2.5.x series kernel some maintainers elected to try and backport their changes to the stable series kernel which resulted in bugs being introduced into the 2.4.x series kernel. The 2.5 branch was then eventually declared stable and renamed to 2.6. But instead of opening an unstable 2.7 branch, the kernel developers elected to continue putting major changes into the 2.6 "stable" branch. This had the desirable effect of breaking changes into smaller and easier to test batches, making new features quickly available, and getting more testing of the latest code.

However, the new 2.6 development model also meant that there was no stable branch for people just wanting security and bug fixes, and not needing the latest features. Fixes were only put into the latest version, so if a user wanted a version with all known bugs fixed they would also get all the latest features, which had not been well tested, and risked breaking things which had previously worked. A partial fix for this was the previously mentioned fourth version number digit (y in 2.6.x.y), which are series of point releases created by the ''stable team'' ( Greg Kroah-Hartman , Chris Wright , maybe others). The stable team only released updates for the most recent kernel however, so this did not solve the problem of the missing stable kernel series. Linux Distribution vendors, such as Red Hat and Debian , maintain the kernels which ship with their releases, so a solution for some people is to just follow a vendor kernel.

As a response to the lack of a stable kernel tree where people could coordinate the collection of bugfixes, in December of 2005 Adrian Bunk announced that he would keep releasing 2.6.16.y kernels when the stable team moved on to 2.6.17 He also plans to include driver updates, making the maintenance of the 2.6.16 series very similar to the old rules for maintenance of a stable series such as 2.4 [http://kerneltrap.org/node/6386 .

As of August 23, 2007, the latest stable kernel version is 2.6.22.5.


Maintenance


While Linus Torvalds supervises code changes and releases to the latest kernel versions, he has delegated the maintenance of older versions to other programmers:

Other Linux kernel programmers include Robert Love and Ingo Molnar .See the Linux MAINTAINERS file .


Stable version history






SEE ALSO








EXTERNAL LINKS