CNX Software – Embedded Systems News

How to Write and Submit a Linux Kernel Patch

Greg Kroah-Hartman has a very good tutorial about writing and submitting a patch to the Linux kernel. The video is over 1 year old but this is still relevant.

The materials for this tutorial are available via git:

git clone git://github.com/gregkh/kernel-tutorial.git

Alternatively, you can also download a copy of the presentation slides.

The actual presentation is divided into 6 parts:

If you want to skip the git basics and kernel coding style parts (although I don’t recommend it), fast forward to 13:33.

All patches by in the linux kernel are checked by at least 2 persons. Before submitting a patch, you’ll have to make sure of the following (Checklist):

Support CNX Software - Donate via PayPal, become a Patron on Patreon, or buy review samples