/dev_scream

File Driver to create a device /dev/scream like the /dev/zero

Primary LanguageC

File Driver to create a device /dev/scream like the /dev/zero

QuickStart

When installed, running:

cat /dev/scream | head -c 100

Prints:

aHAAhhaHHAAHaAaAAAAhhHhhAAaAAAhAaaAAAaHHAHhAaaaaAaHahAaAHaAAHaaHhAHhHaHaAaHAAHaAhhaHaAaAA

Install

Download file

git clone https://github.com/matlink/dev_scream && cd dev_scream
make build
sudo make install
sudo make load

Uninstall

sudo make clean

Util

# Installed modules, see #7
lsmod  # List modules
sudo modprobe one  # Load one driver => creates /dev/one
sudo depmod  # Re-create the module dependency list
sudo modprobe -r one  # Load one driver => removes /dev/one

# Keys
sudo mokutil --list-new  # List key that will be added at boot
sudo mokutil --reset  # Delete future keys
sudo cat /proc/keys  # View your installed keys
dmesg -wH  # Kernel log like tail -f

Source

Licence

This project, DevOne, is licensed under the GPL v2.0 or later Copyright © 2020-2022 Martin Tourneboeuf (https://tinmarino.github.io)