mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
11 lines
261 B
Bash
Executable File
11 lines
261 B
Bash
Executable File
#!/bin/sh
|
|
set -ex
|
|
mkdir -p /debugfs
|
|
# We also added a fstab entry that mounts this under /sys/kernel/debug autmoatically.
|
|
# That is the most common place to mount it.
|
|
mount -t debugfs none /debugfs
|
|
insmod /debugfs.ko
|
|
cd /debugfs/lkmc_debugfs
|
|
cat myfile
|
|
# => 42
|