Linux Journal: The Kernel Hacker's Guide to Source Code Control | Linux Today

Linux Journal: The Kernel Hacker’s Guide to Source Code Control

Written By
GK
Greg Kroah-Hartman
Aug 21, 2002

“Many issues involved with Linux kernel development are
different from traditional software development processes. When
working on a portion of the kernel (or a specific driver), you need
to 1) stay aware of changes that are happening to other portions of
the kernel with which you interact, 2) constantly apply your
changes to the moving target of a fast-based kernel development
release schedule, 3) resolve any merge conflicts between changes
you have made and changes made by other people and 4) be able to
export your changes in a format others can use easily.

“For a number of years, I developed and maintained the USB to
serial port drivers and then eventually took over maintaining all
of the USB code in the kernel. In this article, I explain some of
the tools I used in the past to do this work and show how some new
tools have enhanced my ability to keep on top of changes in the
kernel and let me do my job with less effort.

“One of the most common methods of doing kernel work is to use
the patch and diff programs. You can use this and no other type of
source-code control system to do kernel development. One way is to
use two different directory trees: a ‘clean’ one and a ‘working’
one. The clean tree is a released kernel version, while the working
one is based on the same released kernel version, but contains your
modifications. Then you can use patch and diff to extract your
changes and forward port these changes to a new kernel
release…”

Complete
Story

GK

Greg Kroah-Hartman

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.