Category: Kernel

Linux Kernel Design Patterns – Part 1

One of the topics of ongoing interest in the kernel community is that of maintaining quality. It is trivially obvious that we need to maintain and even improve quality. It is less obvious how best to do so. One broad approach that has found some real success is to increase the visibility of various aspects of the kernel. This makes the quality of those aspects more apparent, so this tends to lead to an improvement of the quality. Read more…

Windows Kernel Routine Naming Conventions

Most windows kernel routines use the following naming structure:


  • The prefix is an abbreviation of the kernel-mode component where the routine is located. All routines can be found in either one of the manager components or one of the library components of the kernel operating system.
  • The verb indicates the action that is being taken by the kernel.
  • The noun indicates the kernel object being acted upon by the routine.
  • The suffix differentiates between versions of a routine.

Read more…

Init Call Mechanism in the Linux Kernel

The Linux kernel has for a long time (at least since v2.1.23) contained a clever and well-optimised mechanism for calling initialisation code in drivers. It’s clever because its functionality is largely abstracted from the driver developer, and it’s well-optimised because after initialisation, memory containing the initialisation code is released. This article explores how this mechanism works.

Read more…