怎麼讓自己寫的code進入kernel中呢? - Linux

Isla avatar
By Isla
at 2008-09-03T11:26

Table of Contents

※ 引述《ebug (相信台灣堅持改革￾N I》之銘言:
: 不好意思,如果內容不適,請通知我,我會刪除
: 如果我替某個3C產品弄了一個可以用的driver
: 這樣子我要怎麼作才可以讓這個source code進入往後standard release的kernel呢?
: 其實我做的修改也只是把id table加上屬於這個3C產品的id而已(USB 產品)
: 因為沒有參遇過相關的流程,如果有大大瞭解的可以分享一下嗎?
: 謝謝...
How do I get my patch into the kernel?

* (RRR) Depending on your patch there are several ways to get it into the
kernel. The first thing is to determine under which maintainer does your code
fall into (look in the MAINTAINERS file). If your patch is only a small
bugfix and you're sure that it is 'obviously correct', then by all means send
it to the appropriate maintainer and post it to the list. If there is urgency
to the bugfix (i.e. a major security hole) you can also send it to Linus
directly, but remember he's likely to ignore random patches unless they are
"obviously correct" to him, have the maintainer's approval, or have been well
tested and meet the first condition. In case you're wondering what
constitutes well tested, here's another important bit: one purpose of the
list is to get patches peer-reviewed and well-tested. Now, if your patch is
relatively big, i.e. a rewrite of a large code section or a new device
driver, then to conserve bandwidth and disk-space just post an announcement
to the list with a link to the patch. Lastly, if you're not too sure about
your patch yet, want some feedback from the maintainer, or wish to avoid
open-season flaming on work-in-progress, then use private email.
* (REG) If there is no specific maintainer for the part of the kernel you
want to patch, then you have three main options:
o send it to [email protected] and hope someone picks it
up and feeds it to Linus, or maybe Linus himself will pick it up (don't count
on it)
o send it to linux-kernel and Cc: Linus Torvalds
<[email protected]> and hope Linus will apply it. Note that Linus operates
like a black box. Do not expect a response from him. You will need to check
patches he releases to see if he applied your patch. If he doesn't apply your
patch, you will need to resend it (often many times). If after weeks or
months and many patch releases he still hasn't applied it, maybe you should
give up. He probably doesn't like it
o send it to linux-kernel and Cc: Alan Cox <[email protected]>. Alan
is better at responding to email, and will queue your patch and resend it to
Linus periodically, so you can forget about it. He also serves as a good
taste tester. If Alan accepts your patch, it's more likely that Linus will
too. If he doesn't like your patch, you will probably get an email saying so.
Expect it to be terse.


原文出至
http://www.tux.org/lkml/#s1-10
How do I get my patch into the kernel?


--
Tags: Linux

All Comments

請問關於GRUB硬碟的順序如何決定?

Daph Bay avatar
By Daph Bay
at 2008-09-02T22:48
※ 引述《koboy (小凱)》之銘言: : 原來開機時GRUB把在Ubuntu中視為sbc的當成是第二顆硬碟(hd1), : 而Ubuntu自動產生的設定卻是把它當成是第三顆硬碟(hd2), : 我只要把menu.lst中的(hd2)都改成(hd1)就OK了... : 我想請問的是,GRUB決定第幾個硬碟的 ...

請問關於GRUB硬碟的順序如何決定?

Quintina avatar
By Quintina
at 2008-09-02T22:23
大家好, 上星期加裝了一顆硬碟, 所以在我的電腦上總共有三個硬碟, 分別是 sda, sdb, sdc, 我在sda上裝了Ubuntu,這個沒問題, 然後在sdc上有舊的Windows XP系統, Ubuntu自動的在GRUB menu.lst加上了開機選項, 可是我一直無法進入Win XP, 在網路上找文章 ...

英文段落的排版方法?

Adele avatar
By Adele
at 2008-09-02T22:09
※ 引述《texlive (王大蠻)》之銘言: : Hi,請問有沒有什麼現成的方式, : 能夠將由數句英文句子組成的文章作排版呢? : 像是這樣: : The quick brown fox jumps over the lazy dog. The : quick brown fox jumps over t ...

用shell script合併兩個檔案

Hazel avatar
By Hazel
at 2008-09-02T21:33
※ 引述《didigod (我是壞小孩 (*_*))》之銘言: : 我有兩個檔案 a.txt andamp; b.txt : 假設兩個檔案各有兩行的資料,我要把這兩個 : 檔案合併成第三個檔案 c.txt。所以c.txt會有 : 四行的資料。 : 例如: : a.txt b.txt =and ...

英文段落的排版方法?

Christine avatar
By Christine
at 2008-09-02T21:16
Hi,請問有沒有什麼現成的方式, 能夠將由數句英文句子組成的文章作排版呢? 像是這樣: The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 會變成: ...