Gsphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget%/translations/zh_CN/process/2.ProcessmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/zh_TW/process/2.ProcessmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/it_IT/process/2.ProcessmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/ja_JP/process/2.ProcessmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/ko_KR/process/2.ProcessmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/sp_SP/process/2.ProcessmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhtarget)}(h.. _development_process:h]h}(h]h ]h"]h$]h&]refiddevelopment-processuh1hhKhhhhh?/var/lib/git/docbuild/linux/Documentation/process/2.Process.rstubhsection)}(hhh](htitle)}(h!How the development process worksh]h!How the development process works}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh paragraph)}(hXLinux kernel development in the early 1990's was a pretty loose affair, with relatively small numbers of users and developers involved. With a user base in the millions and with some 2,000 developers involved over the course of one year, the kernel has since had to evolve a number of processes to keep development happening smoothly. A solid understanding of how the process works is required in order to be an effective part of it.h]hXLinux kernel development in the early 1990’s was a pretty loose affair, with relatively small numbers of users and developers involved. With a user base in the millions and with some 2,000 developers involved over the course of one year, the kernel has since had to evolve a number of processes to keep development happening smoothly. A solid understanding of how the process works is required in order to be an effective part of it.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(hThe big pictureh]hThe big picture}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hThe kernel developers use a loosely time-based release process, with a new major kernel release happening every two or three months. The recent release history looks like this:h]hThe kernel developers use a loosely time-based release process, with a new major kernel release happening every two or three months. The recent release history looks like this:}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh block_quote)}(h====== ================= 5.0 March 3, 2019 5.1 May 5, 2019 5.2 July 7, 2019 5.3 September 15, 2019 5.4 November 24, 2019 5.5 January 6, 2020 ====== ================= h]htable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(h5.0h]h5.0}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj&ubah}(h]h ]h"]h$]h&]uh1j$hj!ubj%)}(hhh]h)}(h March 3, 2019h]h March 3, 2019}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj=ubah}(h]h ]h"]h$]h&]uh1j$hj!ubeh}(h]h ]h"]h$]h&]uh1jhjubj )}(hhh](j%)}(hhh]h)}(h5.1h]h5.1}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj]ubah}(h]h ]h"]h$]h&]uh1j$hjZubj%)}(hhh]h)}(h May 5, 2019h]h May 5, 2019}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjtubah}(h]h ]h"]h$]h&]uh1j$hjZubeh}(h]h ]h"]h$]h&]uh1jhjubj )}(hhh](j%)}(hhh]h)}(h5.2h]h5.2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j$hjubj%)}(hhh]h)}(h July 7, 2019h]h July 7, 2019}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j$hjubeh}(h]h ]h"]h$]h&]uh1jhjubj )}(hhh](j%)}(hhh]h)}(h5.3h]h5.3}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j$hjubj%)}(hhh]h)}(hSeptember 15, 2019h]hSeptember 15, 2019}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j$hjubeh}(h]h ]h"]h$]h&]uh1jhjubj )}(hhh](j%)}(hhh]h)}(h5.4h]h5.4}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j$hjubj%)}(hhh]h)}(hNovember 24, 2019h]hNovember 24, 2019}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j$hjubeh}(h]h ]h"]h$]h&]uh1jhjubj )}(hhh](j%)}(hhh]h)}(h5.5h]h5.5}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj9ubah}(h]h ]h"]h$]h&]uh1j$hj6ubj%)}(hhh]h)}(hJanuary 6, 2020h]hJanuary 6, 2020}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjPubah}(h]h ]h"]h$]h&]uh1j$hj6ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1hhhubah}(h]h ]h"]h$]h&]uh1hhhubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hX_Every 5.x release is a major kernel release with new features, internal API changes, and more. A typical release can contain about 13,000 changesets with changes to several hundred thousand lines of code. 5.x is the leading edge of Linux kernel development; the kernel uses a rolling development model which is continually integrating major changes.h]hX_Every 5.x release is a major kernel release with new features, internal API changes, and more. A typical release can contain about 13,000 changesets with changes to several hundred thousand lines of code. 5.x is the leading edge of Linux kernel development; the kernel uses a rolling development model which is continually integrating major changes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXA relatively straightforward discipline is followed with regard to the merging of patches for each release. At the beginning of each development cycle, the "merge window" is said to be open. At that time, code which is deemed to be sufficiently stable (and which is accepted by the development community) is merged into the mainline kernel. The bulk of changes for a new development cycle (and all of the major changes) will be merged during this time, at a rate approaching 1,000 changes ("patches," or "changesets") per day.h]hXA relatively straightforward discipline is followed with regard to the merging of patches for each release. At the beginning of each development cycle, the “merge window” is said to be open. At that time, code which is deemed to be sufficiently stable (and which is accepted by the development community) is merged into the mainline kernel. The bulk of changes for a new development cycle (and all of the major changes) will be merged during this time, at a rate approaching 1,000 changes (“patches,” or “changesets”) per day.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK#hhhhubh)}(h(As an aside, it is worth noting that the changes integrated during the merge window do not come out of thin air; they have been collected, tested, and staged ahead of time. How that process works will be described in detail later on).h]h(As an aside, it is worth noting that the changes integrated during the merge window do not come out of thin air; they have been collected, tested, and staged ahead of time. How that process works will be described in detail later on).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK,hhhhubh)}(hXThe merge window lasts for approximately two weeks. At the end of this time, Linus Torvalds will declare that the window is closed and release the first of the "rc" kernels. For the kernel which is destined to be 5.6, for example, the release which happens at the end of the merge window will be called 5.6-rc1. The -rc1 release is the signal that the time to merge new features has passed, and that the time to stabilize the next kernel has begun.h]hXThe merge window lasts for approximately two weeks. At the end of this time, Linus Torvalds will declare that the window is closed and release the first of the “rc” kernels. For the kernel which is destined to be 5.6, for example, the release which happens at the end of the merge window will be called 5.6-rc1. The -rc1 release is the signal that the time to merge new features has passed, and that the time to stabilize the next kernel has begun.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hhhhubh)}(hX`Over the next six to ten weeks, only patches which fix problems should be submitted to the mainline. On occasion a more significant change will be allowed, but such occasions are rare; developers who try to merge new features outside of the merge window tend to get an unfriendly reception. As a general rule, if you miss the merge window for a given feature, the best thing to do is to wait for the next development cycle. (An occasional exception is made for drivers for previously-unsupported hardware; if they touch no in-tree code, they cannot cause regressions and should be safe to add at any time).h]hX`Over the next six to ten weeks, only patches which fix problems should be submitted to the mainline. On occasion a more significant change will be allowed, but such occasions are rare; developers who try to merge new features outside of the merge window tend to get an unfriendly reception. As a general rule, if you miss the merge window for a given feature, the best thing to do is to wait for the next development cycle. (An occasional exception is made for drivers for previously-unsupported hardware; if they touch no in-tree code, they cannot cause regressions and should be safe to add at any time).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK9hhhhubh)}(hXLAs fixes make their way into the mainline, the patch rate will slow over time. Linus releases new -rc kernels about once a week; a normal series will get up to somewhere between -rc6 and -rc9 before the kernel is considered to be sufficiently stable and the final release is made. At that point the whole process starts over again.h]hXLAs fixes make their way into the mainline, the patch rate will slow over time. Linus releases new -rc kernels about once a week; a normal series will get up to somewhere between -rc6 and -rc9 before the kernel is considered to be sufficiently stable and the final release is made. At that point the whole process starts over again.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKChhhhubh)}(hNAs an example, here is how the 5.4 development cycle went (all dates in 2019):h]hNAs an example, here is how the 5.4 development cycle went (all dates in 2019):}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKIhhhhubh)}(hX{============== =============================== September 15 5.3 stable release September 30 5.4-rc1, merge window closes October 6 5.4-rc2 October 13 5.4-rc3 October 20 5.4-rc4 October 27 5.4-rc5 November 3 5.4-rc6 November 10 5.4-rc7 November 17 5.4-rc8 November 24 5.4 stable release ============== =============================== h]h)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh](j )}(hhh](j%)}(hhh]h)}(h September 15h]h September 15}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKMhj ubah}(h]h ]h"]h$]h&]uh1j$hj ubj%)}(hhh]h)}(h5.3 stable releaseh]h5.3 stable release}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKMhj#ubah}(h]h ]h"]h$]h&]uh1j$hj ubeh}(h]h ]h"]h$]h&]uh1jhjubj )}(hhh](j%)}(hhh]h)}(h September 30h]h September 30}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKNhjCubah}(h]h ]h"]h$]h&]uh1j$hj@ubj%)}(hhh]h)}(h5.4-rc1, merge window closesh]h5.4-rc1, merge window closes}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKNhjZubah}(h]h ]h"]h$]h&]uh1j$hj@ubeh}(h]h ]h"]h$]h&]uh1jhjubj )}(hhh](j%)}(hhh]h)}(h October 6h]h October 6}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKOhjzubah}(h]h ]h"]h$]h&]uh1j$hjwubj%)}(hhh]h)}(h5.4-rc2h]h5.4-rc2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKOhjubah}(h]h ]h"]h$]h&]uh1j$hjwubeh}(h]h ]h"]h$]h&]uh1jhjubj )}(hhh](j%)}(hhh]h)}(h October 13h]h October 13}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKPhjubah}(h]h ]h"]h$]h&]uh1j$hjubj%)}(hhh]h)}(h5.4-rc3h]h5.4-rc3}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKPhjubah}(h]h ]h"]h$]h&]uh1j$hjubeh}(h]h ]h"]h$]h&]uh1jhjubj )}(hhh](j%)}(hhh]h)}(h October 20h]h October 20}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKQhjubah}(h]h ]h"]h$]h&]uh1j$hjubj%)}(hhh]h)}(h5.4-rc4h]h5.4-rc4}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKQhjubah}(h]h ]h"]h$]h&]uh1j$hjubeh}(h]h ]h"]h$]h&]uh1jhjubj )}(hhh](j%)}(hhh]h)}(h October 27h]h October 27}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKRhjubah}(h]h ]h"]h$]h&]uh1j$hjubj%)}(hhh]h)}(h5.4-rc5h]h5.4-rc5}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKRhj6ubah}(h]h ]h"]h$]h&]uh1j$hjubeh}(h]h ]h"]h$]h&]uh1jhjubj )}(hhh](j%)}(hhh]h)}(h November 3h]h November 3}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKShjVubah}(h]h ]h"]h$]h&]uh1j$hjSubj%)}(hhh]h)}(h5.4-rc6h]h5.4-rc6}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKShjmubah}(h]h ]h"]h$]h&]uh1j$hjSubeh}(h]h ]h"]h$]h&]uh1jhjubj )}(hhh](j%)}(hhh]h)}(h November 10h]h November 10}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKThjubah}(h]h ]h"]h$]h&]uh1j$hjubj%)}(hhh]h)}(h5.4-rc7h]h5.4-rc7}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKThjubah}(h]h ]h"]h$]h&]uh1j$hjubeh}(h]h ]h"]h$]h&]uh1jhjubj )}(hhh](j%)}(hhh]h)}(h November 17h]h November 17}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKUhjubah}(h]h ]h"]h$]h&]uh1j$hjubj%)}(hhh]h)}(h5.4-rc8h]h5.4-rc8}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKUhjubah}(h]h ]h"]h$]h&]uh1j$hjubeh}(h]h ]h"]h$]h&]uh1jhjubj )}(hhh](j%)}(hhh]h)}(h November 24h]h November 24}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKVhjubah}(h]h ]h"]h$]h&]uh1j$hjubj%)}(hhh]h)}(h5.4 stable releaseh]h5.4 stable release}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKVhjubah}(h]h ]h"]h$]h&]uh1j$hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1hhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhhhKLhhhhubh)}(hXHow do the developers decide when to close the development cycle and create the stable release? The most significant metric used is the list of regressions from previous releases. No bugs are welcome, but those which break systems which worked in the past are considered to be especially serious. For this reason, patches which cause regressions are looked upon unfavorably and are quite likely to be reverted during the stabilization period.h]hXHow do the developers decide when to close the development cycle and create the stable release? The most significant metric used is the list of regressions from previous releases. No bugs are welcome, but those which break systems which worked in the past are considered to be especially serious. For this reason, patches which cause regressions are looked upon unfavorably and are quite likely to be reverted during the stabilization period.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKYhhhhubh)}(hXThe developers' goal is to fix all known regressions before the stable release is made. In the real world, this kind of perfection is hard to achieve; there are just too many variables in a project of this size. There comes a point where delaying the final release just makes the problem worse; the pile of changes waiting for the next merge window will grow larger, creating even more regressions the next time around. So most 5.x kernels go out with a handful of known regressions though, hopefully, none of them are serious.h]hXThe developers’ goal is to fix all known regressions before the stable release is made. In the real world, this kind of perfection is hard to achieve; there are just too many variables in a project of this size. There comes a point where delaying the final release just makes the problem worse; the pile of changes waiting for the next merge window will grow larger, creating even more regressions the next time around. So most 5.x kernels go out with a handful of known regressions though, hopefully, none of them are serious.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKahhhhubh)}(hXDOnce a stable release is made, its ongoing maintenance is passed off to the "stable team," currently Greg Kroah-Hartman. The stable team will release occasional updates to the stable release using the 5.x.y numbering scheme. To be considered for an update release, a patch must (1) fix a significant bug, and (2) already be merged into the mainline for the next development kernel. Kernels will typically receive stable updates for a little more than one development cycle past their initial release. So, for example, the 5.2 kernel's history looked like this (all dates in 2019):h]hXJOnce a stable release is made, its ongoing maintenance is passed off to the “stable team,” currently Greg Kroah-Hartman. The stable team will release occasional updates to the stable release using the 5.x.y numbering scheme. To be considered for an update release, a patch must (1) fix a significant bug, and (2) already be merged into the mainline for the next development kernel. Kernels will typically receive stable updates for a little more than one development cycle past their initial release. So, for example, the 5.2 kernel’s history looked like this (all dates in 2019):}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKjhhhhubh)}(hX============== =============================== July 7 5.2 stable release July 14 5.2.1 July 21 5.2.2 July 26 5.2.3 July 28 5.2.4 July 31 5.2.5 ... ... October 11 5.2.21 ============== =============================== h]h)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjyubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjyubj)}(hhh](j )}(hhh](j%)}(hhh]h)}(hJuly 7h]hJuly 7}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKthjubah}(h]h ]h"]h$]h&]uh1j$hjubj%)}(hhh]h)}(h5.2 stable releaseh]h5.2 stable release}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKthjubah}(h]h ]h"]h$]h&]uh1j$hjubeh}(h]h ]h"]h$]h&]uh1jhjubj )}(hhh](j%)}(hhh]h)}(hJuly 14h]hJuly 14}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKuhjubah}(h]h ]h"]h$]h&]uh1j$hjubj%)}(hhh]h)}(h5.2.1h]h5.2.1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKuhjubah}(h]h ]h"]h$]h&]uh1j$hjubeh}(h]h ]h"]h$]h&]uh1jhjubj )}(hhh](j%)}(hhh]h)}(hJuly 21h]hJuly 21}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKvhjubah}(h]h ]h"]h$]h&]uh1j$hjubj%)}(hhh]h)}(h5.2.2h]h5.2.2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKvhjubah}(h]h ]h"]h$]h&]uh1j$hjubeh}(h]h ]h"]h$]h&]uh1jhjubj )}(hhh](j%)}(hhh]h)}(hJuly 26h]hJuly 26}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKwhj;ubah}(h]h ]h"]h$]h&]uh1j$hj8ubj%)}(hhh]h)}(h5.2.3h]h5.2.3}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKwhjRubah}(h]h ]h"]h$]h&]uh1j$hj8ubeh}(h]h ]h"]h$]h&]uh1jhjubj )}(hhh](j%)}(hhh]h)}(hJuly 28h]hJuly 28}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKxhjrubah}(h]h ]h"]h$]h&]uh1j$hjoubj%)}(hhh]h)}(h5.2.4h]h5.2.4}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKxhjubah}(h]h ]h"]h$]h&]uh1j$hjoubeh}(h]h ]h"]h$]h&]uh1jhjubj )}(hhh](j%)}(hhh]h)}(hJuly 31h]hJuly 31}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKyhjubah}(h]h ]h"]h$]h&]uh1j$hjubj%)}(hhh]h)}(h5.2.5h]h5.2.5}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKyhjubah}(h]h ]h"]h$]h&]uh1j$hjubeh}(h]h ]h"]h$]h&]uh1jhjubj )}(hhh](j%)}(hhh]h)}(h...h]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKzhjubah}(h]h ]h"]h$]h&]uh1j$hjubj%)}(hhh]h)}(h...h]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKzhjubah}(h]h ]h"]h$]h&]uh1j$hjubeh}(h]h ]h"]h$]h&]uh1jhjubj )}(hhh](j%)}(hhh]h)}(h October 11h]h October 11}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK{hjubah}(h]h ]h"]h$]h&]uh1j$hjubj%)}(hhh]h)}(h5.2.21h]h5.2.21}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK{hj.ubah}(h]h ]h"]h$]h&]uh1j$hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]colsKuh1hhjvubah}(h]h ]h"]h$]h&]uh1hhjrubah}(h]h ]h"]h$]h&]uh1hhhhKshhhhubh)}(h65.2.21 was the final stable update of the 5.2 release.h]h65.2.21 was the final stable update of the 5.2 release.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK~hhhhubh)}(hSome kernels are designated "long term" kernels; they will receive support for a longer period. Please refer to the following link for the list of active long term kernel versions and their maintainers:h]hSome kernels are designated “long term” kernels; they will receive support for a longer period. Please refer to the following link for the list of active long term kernel versions and their maintainers:}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(h.https://www.kernel.org/category/releases.html h]h)}(h-https://www.kernel.org/category/releases.htmlh]h reference)}(hjh]h-https://www.kernel.org/category/releases.html}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurijuh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hThe selection of a kernel for long-term support is purely a matter of a maintainer having the need and the time to maintain that release. There are no known plans for long-term support for any specific upcoming release.h]hThe selection of a kernel for long-term support is purely a matter of a maintainer having the need and the time to maintain that release. There are no known plans for long-term support for any specific upcoming release.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubeh}(h]the-big-pictureah ]h"]the big pictureah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hThe lifecycle of a patchh]hThe lifecycle of a patch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hXPatches do not go directly from the developer's keyboard into the mainline kernel. There is, instead, a somewhat involved (if somewhat informal) process designed to ensure that each patch is reviewed for quality and that each patch implements a change which is desirable to have in the mainline. This process can happen quickly for minor fixes, or, in the case of large and controversial changes, go on for years. Much developer frustration comes from a lack of understanding of this process or from attempts to circumvent it.h]hXPatches do not go directly from the developer’s keyboard into the mainline kernel. There is, instead, a somewhat involved (if somewhat informal) process designed to ensure that each patch is reviewed for quality and that each patch implements a change which is desirable to have in the mainline. This process can happen quickly for minor fixes, or, in the case of large and controversial changes, go on for years. Much developer frustration comes from a lack of understanding of this process or from attempts to circumvent it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hXIn the hopes of reducing that frustration, this document will describe how a patch gets into the kernel. What follows below is an introduction which describes the process in a somewhat idealized way. A much more detailed treatment will come in later sections.h]hXIn the hopes of reducing that frustration, this document will describe how a patch gets into the kernel. What follows below is an introduction which describes the process in a somewhat idealized way. A much more detailed treatment will come in later sections.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(h4The stages that a patch goes through are, generally:h]h4The stages that a patch goes through are, generally:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hX2- Design. This is where the real requirements for the patch - and the way those requirements will be met - are laid out. Design work is often done without involving the community, but it is better to do this work in the open if at all possible; it can save a lot of time redesigning things later. - Early review. Patches are posted to the relevant mailing list, and developers on that list reply with any comments they may have. This process should turn up any major problems with a patch if all goes well. - Wider review. When the patch is getting close to ready for mainline inclusion, it should be accepted by a relevant subsystem maintainer - though this acceptance is not a guarantee that the patch will make it all the way to the mainline. The patch will show up in the maintainer's subsystem tree and into the -next trees (described below). When the process works, this step leads to more extensive review of the patch and the discovery of any problems resulting from the integration of this patch with work being done by others. h]h bullet_list)}(hhh](h list_item)}(hX)Design. This is where the real requirements for the patch - and the way those requirements will be met - are laid out. Design work is often done without involving the community, but it is better to do this work in the open if at all possible; it can save a lot of time redesigning things later. h]h)}(hX(Design. This is where the real requirements for the patch - and the way those requirements will be met - are laid out. Design work is often done without involving the community, but it is better to do this work in the open if at all possible; it can save a lot of time redesigning things later.h]hX(Design. This is where the real requirements for the patch - and the way those requirements will be met - are laid out. Design work is often done without involving the community, but it is better to do this work in the open if at all possible; it can save a lot of time redesigning things later.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hEarly review. Patches are posted to the relevant mailing list, and developers on that list reply with any comments they may have. This process should turn up any major problems with a patch if all goes well. h]h)}(hEarly review. Patches are posted to the relevant mailing list, and developers on that list reply with any comments they may have. This process should turn up any major problems with a patch if all goes well.h]hEarly review. Patches are posted to the relevant mailing list, and developers on that list reply with any comments they may have. This process should turn up any major problems with a patch if all goes well.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hXWider review. When the patch is getting close to ready for mainline inclusion, it should be accepted by a relevant subsystem maintainer - though this acceptance is not a guarantee that the patch will make it all the way to the mainline. The patch will show up in the maintainer's subsystem tree and into the -next trees (described below). When the process works, this step leads to more extensive review of the patch and the discovery of any problems resulting from the integration of this patch with work being done by others. h]h)}(hXWider review. When the patch is getting close to ready for mainline inclusion, it should be accepted by a relevant subsystem maintainer - though this acceptance is not a guarantee that the patch will make it all the way to the mainline. The patch will show up in the maintainer's subsystem tree and into the -next trees (described below). When the process works, this step leads to more extensive review of the patch and the discovery of any problems resulting from the integration of this patch with work being done by others.h]hXWider review. When the patch is getting close to ready for mainline inclusion, it should be accepted by a relevant subsystem maintainer - though this acceptance is not a guarantee that the patch will make it all the way to the mainline. The patch will show up in the maintainer’s subsystem tree and into the -next trees (described below). When the process works, this step leads to more extensive review of the patch and the discovery of any problems resulting from the integration of this patch with work being done by others.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]bullet-uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hhh]j)}(hXPlease note that most maintainers also have day jobs, so merging your patch may not be their highest priority. If your patch is getting feedback about changes that are needed, you should either make those changes or justify why they should not be made. If your patch has no review complaints but is not being merged by its appropriate subsystem or driver maintainer, you should be persistent in updating the patch to the current kernel so that it applies cleanly and keep sending it for review and merging. h]h)}(hXPlease note that most maintainers also have day jobs, so merging your patch may not be their highest priority. If your patch is getting feedback about changes that are needed, you should either make those changes or justify why they should not be made. If your patch has no review complaints but is not being merged by its appropriate subsystem or driver maintainer, you should be persistent in updating the patch to the current kernel so that it applies cleanly and keep sending it for review and merging.h]hXPlease note that most maintainers also have day jobs, so merging your patch may not be their highest priority. If your patch is getting feedback about changes that are needed, you should either make those changes or justify why they should not be made. If your patch has no review complaints but is not being merged by its appropriate subsystem or driver maintainer, you should be persistent in updating the patch to the current kernel so that it applies cleanly and keep sending it for review and merging.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjYubah}(h]h ]h"]h$]h&]uh1jhjVhhhhhNubah}(h]h ]h"]h$]h&]jNjOuh1jhhhKhjhhubh)}(hX`- Merging into the mainline. Eventually, a successful patch will be merged into the mainline repository managed by Linus Torvalds. More comments and/or problems may surface at this time; it is important that the developer be responsive to these and fix any issues which arise. - Stable release. The number of users potentially affected by the patch is now large, so, once again, new problems may arise. - Long-term maintenance. While it is certainly possible for a developer to forget about code after merging it, that sort of behavior tends to leave a poor impression in the development community. Merging code eliminates some of the maintenance burden, in that others will fix problems caused by API changes. But the original developer should continue to take responsibility for the code if it is to remain useful in the longer term. h]j)}(hhh](j)}(hXMerging into the mainline. Eventually, a successful patch will be merged into the mainline repository managed by Linus Torvalds. More comments and/or problems may surface at this time; it is important that the developer be responsive to these and fix any issues which arise. h]h)}(hXMerging into the mainline. Eventually, a successful patch will be merged into the mainline repository managed by Linus Torvalds. More comments and/or problems may surface at this time; it is important that the developer be responsive to these and fix any issues which arise.h]hXMerging into the mainline. Eventually, a successful patch will be merged into the mainline repository managed by Linus Torvalds. More comments and/or problems may surface at this time; it is important that the developer be responsive to these and fix any issues which arise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj~ubah}(h]h ]h"]h$]h&]uh1jhj{ubj)}(h}Stable release. The number of users potentially affected by the patch is now large, so, once again, new problems may arise. h]h)}(h|Stable release. The number of users potentially affected by the patch is now large, so, once again, new problems may arise.h]h|Stable release. The number of users potentially affected by the patch is now large, so, once again, new problems may arise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj{ubj)}(hXLong-term maintenance. While it is certainly possible for a developer to forget about code after merging it, that sort of behavior tends to leave a poor impression in the development community. Merging code eliminates some of the maintenance burden, in that others will fix problems caused by API changes. But the original developer should continue to take responsibility for the code if it is to remain useful in the longer term. h]h)}(hXLong-term maintenance. While it is certainly possible for a developer to forget about code after merging it, that sort of behavior tends to leave a poor impression in the development community. Merging code eliminates some of the maintenance burden, in that others will fix problems caused by API changes. But the original developer should continue to take responsibility for the code if it is to remain useful in the longer term.h]hXLong-term maintenance. While it is certainly possible for a developer to forget about code after merging it, that sort of behavior tends to leave a poor impression in the development community. Merging code eliminates some of the maintenance burden, in that others will fix problems caused by API changes. But the original developer should continue to take responsibility for the code if it is to remain useful in the longer term.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]jNjOuh1jhhhKhjwubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hOne of the largest mistakes made by kernel developers (or their employers) is to try to cut the process down to a single "merging into the mainline" step. This approach invariably leads to frustration for everybody involved.h]hOne of the largest mistakes made by kernel developers (or their employers) is to try to cut the process down to a single “merging into the mainline” step. This approach invariably leads to frustration for everybody involved.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]the-lifecycle-of-a-patchah ]h"]the lifecycle of a patchah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hHow patches get into the Kernelh]hHow patches get into the Kernel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hXThere is exactly one person who can merge patches into the mainline kernel repository: Linus Torvalds. But, for example, of the over 9,500 patches which went into the 2.6.38 kernel, only 112 (around 1.3%) were directly chosen by Linus himself. The kernel project has long since grown to a size where no single developer could possibly inspect and select every patch unassisted. The way the kernel developers have addressed this growth is through the use of a lieutenant system built around a chain of trust.h]hXThere is exactly one person who can merge patches into the mainline kernel repository: Linus Torvalds. But, for example, of the over 9,500 patches which went into the 2.6.38 kernel, only 112 (around 1.3%) were directly chosen by Linus himself. The kernel project has long since grown to a size where no single developer could possibly inspect and select every patch unassisted. The way the kernel developers have addressed this growth is through the use of a lieutenant system built around a chain of trust.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hXThe kernel code base is logically broken down into a set of subsystems: networking, specific architecture support, memory management, video devices, etc. Most subsystems have a designated maintainer, a developer who has overall responsibility for the code within that subsystem. These subsystem maintainers are the gatekeepers (in a loose way) for the portion of the kernel they manage; they are the ones who will (usually) accept a patch for inclusion into the mainline kernel.h]hXThe kernel code base is logically broken down into a set of subsystems: networking, specific architecture support, memory management, video devices, etc. Most subsystems have a designated maintainer, a developer who has overall responsibility for the code within that subsystem. These subsystem maintainers are the gatekeepers (in a loose way) for the portion of the kernel they manage; they are the ones who will (usually) accept a patch for inclusion into the mainline kernel.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hXSubsystem maintainers each manage their own version of the kernel source tree, usually (but certainly not always) using the git source management tool. Tools like git (and related tools like quilt or mercurial) allow maintainers to track a list of patches, including authorship information and other metadata. At any given time, the maintainer can identify which patches in his or her repository are not found in the mainline.h]hXSubsystem maintainers each manage their own version of the kernel source tree, usually (but certainly not always) using the git source management tool. Tools like git (and related tools like quilt or mercurial) allow maintainers to track a list of patches, including authorship information and other metadata. At any given time, the maintainer can identify which patches in his or her repository are not found in the mainline.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hXWhen the merge window opens, top-level maintainers will ask Linus to "pull" the patches they have selected for merging from their repositories. If Linus agrees, the stream of patches will flow up into his repository, becoming part of the mainline kernel. The amount of attention that Linus pays to specific patches received in a pull operation varies. It is clear that, sometimes, he looks quite closely. But, as a general rule, Linus trusts the subsystem maintainers to not send bad patches upstream.h]hXWhen the merge window opens, top-level maintainers will ask Linus to “pull” the patches they have selected for merging from their repositories. If Linus agrees, the stream of patches will flow up into his repository, becoming part of the mainline kernel. The amount of attention that Linus pays to specific patches received in a pull operation varies. It is clear that, sometimes, he looks quite closely. But, as a general rule, Linus trusts the subsystem maintainers to not send bad patches upstream.}(hj# hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hXSubsystem maintainers, in turn, can pull patches from other maintainers. For example, the networking tree is built from patches which accumulated first in trees dedicated to network device drivers, wireless networking, etc. This chain of repositories can be arbitrarily long, though it rarely exceeds two or three links. Since each maintainer in the chain trusts those managing lower-level trees, this process is known as the "chain of trust."h]hXSubsystem maintainers, in turn, can pull patches from other maintainers. For example, the networking tree is built from patches which accumulated first in trees dedicated to network device drivers, wireless networking, etc. This chain of repositories can be arbitrarily long, though it rarely exceeds two or three links. Since each maintainer in the chain trusts those managing lower-level trees, this process is known as the “chain of trust.”}(hj1 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hClearly, in a system like this, getting patches into the kernel depends on finding the right maintainer. Sending patches directly to Linus is not normally the right way to go.h]hClearly, in a system like this, getting patches into the kernel depends on finding the right maintainer. Sending patches directly to Linus is not normally the right way to go.}(hj? hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]how-patches-get-into-the-kernelah ]h"]how patches get into the kernelah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Next treesh]h Next trees}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjU hhhhhMubh)}(hXThe chain of subsystem trees guides the flow of patches into the kernel, but it also raises an interesting question: what if somebody wants to look at all of the patches which are being prepared for the next merge window? Developers will be interested in what other changes are pending to see whether there are any conflicts to worry about; a patch which changes a core kernel function prototype, for example, will conflict with any other patches which use the older form of that function. Reviewers and testers want access to the changes in their integrated form before all of those changes land in the mainline kernel. One could pull changes from all of the interesting subsystem trees, but that would be a big and error-prone job.h]hXThe chain of subsystem trees guides the flow of patches into the kernel, but it also raises an interesting question: what if somebody wants to look at all of the patches which are being prepared for the next merge window? Developers will be interested in what other changes are pending to see whether there are any conflicts to worry about; a patch which changes a core kernel function prototype, for example, will conflict with any other patches which use the older form of that function. Reviewers and testers want access to the changes in their integrated form before all of those changes land in the mainline kernel. One could pull changes from all of the interesting subsystem trees, but that would be a big and error-prone job.}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjU hhubh)}(hXfThe answer comes in the form of -next trees, where subsystem trees are collected for testing and review. The older of these trees, maintained by Andrew Morton, is called "-mm" (for memory management, which is how it got started). The -mm tree integrates patches from a long list of subsystem trees; it also has some patches aimed at helping with debugging.h]hXjThe answer comes in the form of -next trees, where subsystem trees are collected for testing and review. The older of these trees, maintained by Andrew Morton, is called “-mm” (for memory management, which is how it got started). The -mm tree integrates patches from a long list of subsystem trees; it also has some patches aimed at helping with debugging.}(hjt hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjU hhubh)}(hXBeyond that, -mm contains a significant collection of patches which have been selected by Andrew directly. These patches may have been posted on a mailing list, or they may apply to a part of the kernel for which there is no designated subsystem tree. As a result, -mm operates as a sort of subsystem tree of last resort; if there is no other obvious path for a patch into the mainline, it is likely to end up in -mm. Miscellaneous patches which accumulate in -mm will eventually either be forwarded on to an appropriate subsystem tree or be sent directly to Linus. In a typical development cycle, approximately 5-10% of the patches going into the mainline get there via -mm.h]hXBeyond that, -mm contains a significant collection of patches which have been selected by Andrew directly. These patches may have been posted on a mailing list, or they may apply to a part of the kernel for which there is no designated subsystem tree. As a result, -mm operates as a sort of subsystem tree of last resort; if there is no other obvious path for a patch into the mainline, it is likely to end up in -mm. Miscellaneous patches which accumulate in -mm will eventually either be forwarded on to an appropriate subsystem tree or be sent directly to Linus. In a typical development cycle, approximately 5-10% of the patches going into the mainline get there via -mm.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjU hhubh)}(hSThe current -mm patch is available in the "mmotm" (-mm of the moment) directory at:h]hWThe current -mm patch is available in the “mmotm” (-mm of the moment) directory at:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjU hhubh)}(h$https://www.ozlabs.org/~akpm/mmotm/ h]h)}(h#https://www.ozlabs.org/~akpm/mmotm/h]j)}(hj h]h#https://www.ozlabs.org/~akpm/mmotm/}(hj hhhNhNubah}(h]h ]h"]h$]h&]refurij uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhhhM#hj ubah}(h]h ]h"]h$]h&]uh1hhhhM#hjU hhubh)}(hUse of the MMOTM tree is likely to be a frustrating experience, though; there is a definite chance that it will not even compile.h]hUse of the MMOTM tree is likely to be a frustrating experience, though; there is a definite chance that it will not even compile.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM%hjU hhubh)}(hXcThe primary tree for next-cycle patch merging is linux-next, maintained by Stephen Rothwell. The linux-next tree is, by design, a snapshot of what the mainline is expected to look like after the next merge window closes. Linux-next trees are announced on the linux-kernel and linux-next mailing lists when they are assembled; they can be downloaded from:h]hXcThe primary tree for next-cycle patch merging is linux-next, maintained by Stephen Rothwell. The linux-next tree is, by design, a snapshot of what the mainline is expected to look like after the next merge window closes. Linux-next trees are announced on the linux-kernel and linux-next mailing lists when they are assembled; they can be downloaded from:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM(hjU hhubh)}(h.https://www.kernel.org/pub/linux/kernel/next/ h]h)}(h-https://www.kernel.org/pub/linux/kernel/next/h]j)}(hj h]h-https://www.kernel.org/pub/linux/kernel/next/}(hj hhhNhNubah}(h]h ]h"]h$]h&]refurij uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhhhM.hj ubah}(h]h ]h"]h$]h&]uh1hhhhM.hjU hhubh)}(hLinux-next has become an integral part of the kernel development process; all patches merged during a given merge window should really have found their way into linux-next some time before the merge window opens.h]hLinux-next has become an integral part of the kernel development process; all patches merged during a given merge window should really have found their way into linux-next some time before the merge window opens.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM0hjU hhubeh}(h] next-treesah ]h"] next treesah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(h Staging treesh]h Staging trees}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhM6ubh)}(hXThe kernel source tree contains the drivers/staging/ directory, where many sub-directories for drivers or filesystems that are on their way to being added to the kernel tree live. They remain in drivers/staging while they still need more work; once complete, they can be moved into the kernel proper. This is a way to keep track of drivers that aren't up to Linux kernel coding or quality standards, but people may want to use them and track development.h]hXThe kernel source tree contains the drivers/staging/ directory, where many sub-directories for drivers or filesystems that are on their way to being added to the kernel tree live. They remain in drivers/staging while they still need more work; once complete, they can be moved into the kernel proper. This is a way to keep track of drivers that aren’t up to Linux kernel coding or quality standards, but people may want to use them and track development.}(hj% hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM8hj hhubh)}(hXGreg Kroah-Hartman currently maintains the staging tree. Drivers that still need work are sent to him, with each driver having its own subdirectory in drivers/staging/. Along with the driver source files, a TODO file should be present in the directory as well. The TODO file lists the pending work that the driver needs for acceptance into the kernel proper, as well as a list of people that should be Cc'd for any patches to the driver. Current rules require that drivers contributed to staging must, at a minimum, compile properly.h]hXGreg Kroah-Hartman currently maintains the staging tree. Drivers that still need work are sent to him, with each driver having its own subdirectory in drivers/staging/. Along with the driver source files, a TODO file should be present in the directory as well. The TODO file lists the pending work that the driver needs for acceptance into the kernel proper, as well as a list of people that should be Cc’d for any patches to the driver. Current rules require that drivers contributed to staging must, at a minimum, compile properly.}(hj3 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM@hj hhubh)}(hXStaging can be a relatively easy way to get new drivers into the mainline where, with luck, they will come to the attention of other developers and improve quickly. Entry into staging is not the end of the story, though; code in staging which is not seeing regular progress will eventually be removed. Distributors also tend to be relatively reluctant to enable staging drivers. So staging is, at best, a stop on the way toward becoming a proper mainline driver.h]hXStaging can be a relatively easy way to get new drivers into the mainline where, with luck, they will come to the attention of other developers and improve quickly. Entry into staging is not the end of the story, though; code in staging which is not seeing regular progress will eventually be removed. Distributors also tend to be relatively reluctant to enable staging drivers. So staging is, at best, a stop on the way toward becoming a proper mainline driver.}(hjA hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMIhj hhubeh}(h] staging-treesah ]h"] staging treesah$]h&]uh1hhhhhhhhM6ubh)}(hhh](h)}(hToolsh]hTools}(hjZ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjW hhhhhMSubh)}(hXqAs can be seen from the above text, the kernel development process depends heavily on the ability to herd collections of patches in various directions. The whole thing would not work anywhere near as well as it does without suitably powerful tools. Tutorials on how to use these tools are well beyond the scope of this document, but there is space for a few pointers.h]hXqAs can be seen from the above text, the kernel development process depends heavily on the ability to herd collections of patches in various directions. The whole thing would not work anywhere near as well as it does without suitably powerful tools. Tutorials on how to use these tools are well beyond the scope of this document, but there is space for a few pointers.}(hjh hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMUhjW hhubh)}(hXBy far the dominant source code management system used by the kernel community is git. Git is one of a number of distributed version control systems being developed in the free software community. It is well tuned for kernel development, in that it performs quite well when dealing with large repositories and large numbers of patches. It also has a reputation for being difficult to learn and use, though it has gotten better over time. Some sort of familiarity with git is almost a requirement for kernel developers; even if they do not use it for their own work, they'll need git to keep up with what other developers (and the mainline) are doing.h]hXBy far the dominant source code management system used by the kernel community is git. Git is one of a number of distributed version control systems being developed in the free software community. It is well tuned for kernel development, in that it performs quite well when dealing with large repositories and large numbers of patches. It also has a reputation for being difficult to learn and use, though it has gotten better over time. Some sort of familiarity with git is almost a requirement for kernel developers; even if they do not use it for their own work, they’ll need git to keep up with what other developers (and the mainline) are doing.}(hjv hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM\hjW hhubh)}(hPGit is now packaged by almost all Linux distributions. There is a home page at:h]hPGit is now packaged by almost all Linux distributions. There is a home page at:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMfhjW hhubh)}(hhttps://git-scm.com/ h]h)}(hhttps://git-scm.com/h]j)}(hj h]hhttps://git-scm.com/}(hj hhhNhNubah}(h]h ]h"]h$]h&]refurij uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhhhMihj ubah}(h]h ]h"]h$]h&]uh1hhhhMihjW hhubh)}(h6That page has pointers to documentation and tutorials.h]h6That page has pointers to documentation and tutorials.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMkhjW hhubh)}(hfAmong the kernel developers who do not use git, the most popular choice is almost certainly Mercurial:h]hfAmong the kernel developers who do not use git, the most popular choice is almost certainly Mercurial:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMmhjW hhubh)}(h#https://www.selenic.com/mercurial/ h]h)}(h"https://www.selenic.com/mercurial/h]j)}(hj h]h"https://www.selenic.com/mercurial/}(hj hhhNhNubah}(h]h ]h"]h$]h&]refurij uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhhhMphj ubah}(h]h ]h"]h$]h&]uh1hhhhMphjW hhubh)}(hdMercurial shares many features with git, but it provides an interface which many find easier to use.h]hdMercurial shares many features with git, but it provides an interface which many find easier to use.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMrhjW hhubh)}(h,The other tool worth knowing about is Quilt:h]h,The other tool worth knowing about is Quilt:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMuhjW hhubh)}(h,https://savannah.nongnu.org/projects/quilt/ h]h)}(h+https://savannah.nongnu.org/projects/quilt/h]j)}(hj h]h+https://savannah.nongnu.org/projects/quilt/}(hj hhhNhNubah}(h]h ]h"]h$]h&]refurij uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhhhMwhj ubah}(h]h ]h"]h$]h&]uh1hhhhMwhjW hhubh)}(hXQuilt is a patch management system, rather than a source code management system. It does not track history over time; it is, instead, oriented toward tracking a specific set of changes against an evolving code base. Some major subsystem maintainers use quilt to manage patches intended to go upstream. For the management of certain kinds of trees (-mm, for example), quilt is the best tool for the job.h]hXQuilt is a patch management system, rather than a source code management system. It does not track history over time; it is, instead, oriented toward tracking a specific set of changes against an evolving code base. Some major subsystem maintainers use quilt to manage patches intended to go upstream. For the management of certain kinds of trees (-mm, for example), quilt is the best tool for the job.}(hj0 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMyhjW hhubeh}(h]toolsah ]h"]toolsah$]h&]uh1hhhhhhhhMSubh)}(hhh](h)}(h Mailing listsh]h Mailing lists}(hjI hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjF hhhhhMubh)}(hXA great deal of Linux kernel development work is done by way of mailing lists. It is hard to be a fully-functioning member of the community without joining at least one list somewhere. But Linux mailing lists also represent a potential hazard to developers, who risk getting buried under a load of electronic mail, running afoul of the conventions used on the Linux lists, or both.h]hXA great deal of Linux kernel development work is done by way of mailing lists. It is hard to be a fully-functioning member of the community without joining at least one list somewhere. But Linux mailing lists also represent a potential hazard to developers, who risk getting buried under a load of electronic mail, running afoul of the conventions used on the Linux lists, or both.}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjF hhubh)}(hTMost kernel mailing lists are hosted at kernel.org; the master list can be found at:h]hTMost kernel mailing lists are hosted at kernel.org; the master list can be found at:}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjF hhubh)}(hhttps://subspace.kernel.org h]h)}(hhttps://subspace.kernel.orgh]j)}(hjy h]hhttps://subspace.kernel.org}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]refurijy uh1jhjw ubah}(h]h ]h"]h$]h&]uh1hhhhMhjs ubah}(h]h ]h"]h$]h&]uh1hhhhMhjF hhubh)}(hwThere are lists hosted elsewhere; please check the MAINTAINERS file for the list relevant for any particular subsystem.h]hwThere are lists hosted elsewhere; please check the MAINTAINERS file for the list relevant for any particular subsystem.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjF hhubh)}(hXThe core mailing list for kernel development is, of course, linux-kernel. This list is an intimidating place to be; volume can reach 500 messages per day, the amount of noise is high, the conversation can be severely technical, and participants are not always concerned with showing a high degree of politeness. But there is no other place where the kernel development community comes together as a whole; developers who avoid this list will miss important information.h]hXThe core mailing list for kernel development is, of course, linux-kernel. This list is an intimidating place to be; volume can reach 500 messages per day, the amount of noise is high, the conversation can be severely technical, and participants are not always concerned with showing a high degree of politeness. But there is no other place where the kernel development community comes together as a whole; developers who avoid this list will miss important information.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjF hhubh)}(h@There are a few hints which can help with linux-kernel survival:h]h@There are a few hints which can help with linux-kernel survival:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjF hhubj)}(hhh](j)}(hHave the list delivered to a separate folder, rather than your main mailbox. One must be able to ignore the stream for sustained periods of time. h]h)}(hHave the list delivered to a separate folder, rather than your main mailbox. One must be able to ignore the stream for sustained periods of time.6?h]hHave the list delivered to a separate folder, rather than your main mailbox. One must be able to ignore the stream for sustained periods of time.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj hhhhhNubj)}(hXDo not try to follow every conversation - nobody else does. It is important to filter on both the topic of interest (though note that long-running conversations can drift away from the original subject without changing the email subject line) and the people who are participating. h]h)}(hXDo not try to follow every conversation - nobody else does. It is important to filter on both the topic of interest (though note that long-running conversations can drift away from the original subject without changing the email subject line) and the people who are participating.h]hXDo not try to follow every conversation - nobody else does. It is important to filter on both the topic of interest (though note that long-running conversations can drift away from the original subject without changing the email subject line) and the people who are participating.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj hhhhhNubj)}(hZDo not feed the trolls. If somebody is trying to stir up an angry response, ignore them. h]h)}(hYDo not feed the trolls. If somebody is trying to stir up an angry response, ignore them.h]hYDo not feed the trolls. If somebody is trying to stir up an angry response, ignore them.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj hhhhhNubj)}(hXWhen responding to linux-kernel email (or that on other lists) preserve the Cc: header for all involved. In the absence of a strong reason (such as an explicit request), you should never remove recipients. Always make sure that the person you are responding to is in the Cc: list. This convention also makes it unnecessary to explicitly ask to be copied on replies to your postings. h]h)}(hXWhen responding to linux-kernel email (or that on other lists) preserve the Cc: header for all involved. In the absence of a strong reason (such as an explicit request), you should never remove recipients. Always make sure that the person you are responding to is in the Cc: list. This convention also makes it unnecessary to explicitly ask to be copied on replies to your postings.h]hXWhen responding to linux-kernel email (or that on other lists) preserve the Cc: header for all involved. In the absence of a strong reason (such as an explicit request), you should never remove recipients. Always make sure that the person you are responding to is in the Cc: list. This convention also makes it unnecessary to explicitly ask to be copied on replies to your postings.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj hhhhhNubj)}(hSearch the list archives (and the net as a whole) before asking questions. Some developers can get impatient with people who clearly have not done their homework. h]h)}(hSearch the list archives (and the net as a whole) before asking questions. Some developers can get impatient with people who clearly have not done their homework.h]hSearch the list archives (and the net as a whole) before asking questions. Some developers can get impatient with people who clearly have not done their homework.}(hj& hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj" ubah}(h]h ]h"]h$]h&]uh1jhj hhhhhNubj)}(hXUse interleaved ("inline") replies, which makes your response easier to read. (i.e. avoid top-posting -- the practice of putting your answer above the quoted text you are responding to.) For more details, see :ref:`Documentation/process/submitting-patches.rst `. h]h)}(hXUse interleaved ("inline") replies, which makes your response easier to read. (i.e. avoid top-posting -- the practice of putting your answer above the quoted text you are responding to.) For more details, see :ref:`Documentation/process/submitting-patches.rst `.h](hUse interleaved (“inline”) replies, which makes your response easier to read. (i.e. avoid top-posting -- the practice of putting your answer above the quoted text you are responding to.) For more details, see }(hj> hhhNhNubh)}(hI:ref:`Documentation/process/submitting-patches.rst `h]hinline)}(hjH h]h,Documentation/process/submitting-patches.rst}(hjL hhhNhNubah}(h]h ](xrefstdstd-refeh"]h$]h&]uh1jJ hjF ubah}(h]h ]h"]h$]h&]refdocprocess/2.Process refdomainjW reftyperef refexplicitrefwarn reftargetinterleaved_repliesuh1hhhhMhj> ubh.}(hj> hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj: ubah}(h]h ]h"]h$]h&]uh1jhj hhhhhNubj)}(hAsk on the correct mailing list. Linux-kernel may be the general meeting point, but it is not the best place to find developers from all subsystems. h]h)}(hAsk on the correct mailing list. Linux-kernel may be the general meeting point, but it is not the best place to find developers from all subsystems.h]hAsk on the correct mailing list. Linux-kernel may be the general meeting point, but it is not the best place to find developers from all subsystems.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj{ ubah}(h]h ]h"]h$]h&]uh1jhj hhhhhNubeh}(h]h ]h"]h$]h&]jNjOuh1jhhhMhjF hhubh)}(hXThe last point - finding the correct mailing list - is a common place for beginning developers to go wrong. Somebody who asks a networking-related question on linux-kernel will almost certainly receive a polite suggestion to ask on the netdev list instead, as that is the list frequented by most networking developers. Other lists exist for the SCSI, video4linux, IDE, filesystem, etc. subsystems. The best place to look for mailing lists is in the MAINTAINERS file packaged with the kernel source.h]hXThe last point - finding the correct mailing list - is a common place for beginning developers to go wrong. Somebody who asks a networking-related question on linux-kernel will almost certainly receive a polite suggestion to ask on the netdev list instead, as that is the list frequented by most networking developers. Other lists exist for the SCSI, video4linux, IDE, filesystem, etc. subsystems. The best place to look for mailing lists is in the MAINTAINERS file packaged with the kernel source.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjF hhubeh}(h] mailing-listsah ]h"] mailing listsah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(h'Getting started with Kernel developmenth]h'Getting started with Kernel development}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhMubh)}(hQuestions about how to get started with the kernel development process are common - from both individuals and companies. Equally common are missteps which make the beginning of the relationship harder than it has to be.h]hQuestions about how to get started with the kernel development process are common - from both individuals and companies. Equally common are missteps which make the beginning of the relationship harder than it has to be.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hXLCompanies often look to hire well-known developers to get a development group started. This can, in fact, be an effective technique. But it also tends to be expensive and does not do much to grow the pool of experienced kernel developers. It is possible to bring in-house developers up to speed on Linux kernel development, given the investment of a bit of time. Taking this time can endow an employer with a group of developers who understand the kernel and the company both, and who can help to train others as well. Over the medium term, this is often the more profitable approach.h]hXLCompanies often look to hire well-known developers to get a development group started. This can, in fact, be an effective technique. But it also tends to be expensive and does not do much to grow the pool of experienced kernel developers. It is possible to bring in-house developers up to speed on Linux kernel development, given the investment of a bit of time. Taking this time can endow an employer with a group of developers who understand the kernel and the company both, and who can help to train others as well. Over the medium term, this is often the more profitable approach.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hXiIndividual developers are often, understandably, at a loss for a place to start. Beginning with a large project can be intimidating; one often wants to test the waters with something smaller first. This is the point where some developers jump into the creation of patches fixing spelling errors or minor coding style issues. Unfortunately, such patches create a level of noise which is distracting for the development community as a whole, so, increasingly, they are looked down upon. New developers wishing to introduce themselves to the community will not get the sort of reception they wish for by these means.h]hXiIndividual developers are often, understandably, at a loss for a place to start. Beginning with a large project can be intimidating; one often wants to test the waters with something smaller first. This is the point where some developers jump into the creation of patches fixing spelling errors or minor coding style issues. Unfortunately, such patches create a level of noise which is distracting for the development community as a whole, so, increasingly, they are looked down upon. New developers wishing to introduce themselves to the community will not get the sort of reception they wish for by these means.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(h>Andrew Morton gives this advice for aspiring kernel developersh]h>Andrew Morton gives this advice for aspiring kernel developers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh literal_block)}(hXDThe #1 project for all kernel beginners should surely be "make sure that the kernel runs perfectly at all times on all machines which you can lay your hands on". Usually the way to do this is to work with others on getting things fixed up (this can require persistence!) but that's fine - it's a part of kernel development.h]hXDThe #1 project for all kernel beginners should surely be "make sure that the kernel runs perfectly at all times on all machines which you can lay your hands on". Usually the way to do this is to work with others on getting things fixed up (this can require persistence!) but that's fine - it's a part of kernel development.}hj sbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1j hhhMhj hhubh)}(h#(https://lwn.net/Articles/283982/).h](h(}(hj hhhNhNubj)}(h https://lwn.net/Articles/283982/h]h https://lwn.net/Articles/283982/}(hj hhhNhNubah}(h]h ]h"]h$]h&]refurij uh1jhj ubh).}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hXdIn the absence of obvious problems to fix, developers are advised to look at the current lists of regressions and open bugs in general. There is never any shortage of issues in need of fixing; by addressing these issues, developers will gain experience with the process while, at the same time, building respect with the rest of the development community.h]hXdIn the absence of obvious problems to fix, developers are advised to look at the current lists of regressions and open bugs in general. There is never any shortage of issues in need of fixing; by addressing these issues, developers will gain experience with the process while, at the same time, building respect with the rest of the development community.}(hj+ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubeh}(h]'getting-started-with-kernel-developmentah ]h"]'getting started with kernel developmentah$]h&]uh1hhhhhhhhMubeh}(h](!how-the-development-process-worksheh ]h"](!how the development process worksdevelopment_processeh$]h&]uh1hhhhhhhhKexpect_referenced_by_name}jG hsexpect_referenced_by_id}hhsubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksj$footnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjp error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}h]hasnameids}(jG hjF jC jjjjjR jO j j jT jQ jC j@ j j j> j; u nametypes}(jG jF jjjR j jT jC j j> uh}(hhjC hjhjjjO jj jU jQ j j@ jW j jF j; j u footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages](hsystem_message)}(hhh]h)}(heUnexpected possible title overline or transition. Treating it as ordinary text because it's so short.h]hgUnexpected possible title overline or transition. Treating it as ordinary text because it’s so short.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]levelKtypeINFOlineK{sourcehuh1j hjubj )}(hhh]h)}(heUnexpected possible title overline or transition. Treating it as ordinary text because it's so short.h]hgUnexpected possible title overline or transition. Treating it as ordinary text because it’s so short.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]levelKtypej lineK{sourcehuh1j hjubetransform_messages]j )}(hhh]h)}(hhh]h9Hyperlink target "development-process" is not referenced.}hjsbah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypej sourcehlineKuh1j uba transformerN include_log] decorationNhhub.