This is step by step linux kernel modules programming guide.

  1. Hello world kernel module guide.

  2. Kernel module with character device.

  3. Kernel module with automatic device creation with udev.

  4. Kernel module with command line arguments parsing.

  5. blablamod_thread - Kernel thread using example

  6. blablamod_timer - Kernel timer using example

  7. rpi_interrupt - GPIO interrupt on Raspberry Pi

  8. blablai2c - I2C device driver example