mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
sysfs
This commit is contained in:
11
rootfs_overlay/sysfs.sh
Executable file
11
rootfs_overlay/sysfs.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -x
|
||||
insmod /sysfs.ko
|
||||
cd /sys/kernel/lkmc_sysfs
|
||||
printf 12345 >foo
|
||||
cat foo
|
||||
# => 1234
|
||||
dd if=foo bs=1 count=2 skip=1 status=none
|
||||
# => 23
|
||||
rmmod sysfs
|
||||
Reference in New Issue
Block a user