debugfs.sh 261 B

1234567891011
  1. #!/bin/sh
  2. set -ex
  3. mkdir -p /debugfs
  4. # We also added a fstab entry that mounts this under /sys/kernel/debug autmoatically.
  5. # That is the most common place to mount it.
  6. mount -t debugfs none /debugfs
  7. insmod /debugfs.ko
  8. cd /debugfs/lkmc_debugfs
  9. cat myfile
  10. # => 42