Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 896 Bytes

File metadata and controls

39 lines (31 loc) · 896 Bytes

A simple Hello, $(name)! pseudo-device driver

This kernel module implements a pseudo-device driver, which offers the user two essential operations on the device: he can write to it specifying a name for greeting, then he can read from it to get a greeting message in the form like Hello, name!

This device driver module does no real useful thing other than illustrating some of the working mechanisms of linux kernel drivers, and offering some enjoyable activity for linux enthusiasts.

Written by: Abdelbari BOUGOFFA
On: Oct 15th, 2025

Usage:

  1. Build the driver module using:
make build
  1. Load the module into kernel space:
make load
  1. Create the device file:
make dev
  1. Play with the device:
cat ./hello  # Outputs: "Hello, World!" when executed for the first time
echo -n "Mom" > ./hello
cat ./hello  # Outputs: "Hello, Mom!"