Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jimbob88/lkm-greeter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lkm-greeter

Linux Kernel Module which greets a user via a proc file. Inspired by procfs2.c from The Linux Kernel Module Programming Guide.

Usage Example

$ sudo insmod greeter.ko
$ sudo dmesg | tail -2
[ 1436.617218] Hello World.
[ 1436.617223] /proc/greetme created
$ sudo cat /proc/greetme
Hello World!
$ echo -n "James" | sudo tee /proc/greetme
James%
$ sudo cat /proc/greetme
Hello James!

Development

Building

make

Loading

sudo insmod greeter.ko

Unloading

sudo rmmod greeter.ko

About

A Linux Kernel Module with a procfile which can store text input in a buffer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published