Skip to content

baribgf/hello-device-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!"

About

A simple Linux pseudo-device driver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors