Cloning this book’s code repository
The complete source code for this book is freely available on GitHub at https://github.com/PacktPublishing/Linux-Kernel-Programming_2E. You can clone and work on it by cloning the git
tree, like so:
git clone https://github.com/PacktPublishing/Linux-Kernel-Programming_2E
The source code is organized chapter-wise. Each chapter is represented as a directory – for example, ch1/
has the source code for this chapter. The root of the source tree has some code that is common to all chapters, such as the convenient.h
and klib.c
source files, among others.
For efficient code browsing, I would strongly recommend that you always index the code base(s) with ctags
and/or cscope
. For example, to set up the ctags
index on a source tree, just cd
to the root of the source tree and type ctags -R
. (If you haven’t already, please invest the time in learning code browsing tools like cscope
and ctags
.)
Unless noted otherwise...