bak
2017-05-09 19:59:56 +01:00
2016-12-15 22:53:13 +00:00
0
2016-07-30 09:38:06 +01:00
bak
2017-05-09 19:59:56 +01:00
2016-12-15 22:53:13 +00:00
0
2016-07-30 09:38:06 +01:00
0
2016-07-30 09:38:06 +01:00
2017-05-12 06:08:24 +01:00

Linux Kernel Module Cheat

Run one command, get into QEMU Buildroot BusyBox with several minimal Linux kernel module example tutorials. Tested in Ubuntu 14.04.

Usage:

./run

First build will take a while (GCC, Linux kernel).

QEMU opens up, and you can run:

insmod /hello.ko
insmod /hello2.ko
rmmod hello
rmmod hello2

Each module comes from a C file under kernel_module/. head *.c for module usage.

The Linux kernel version can be found with:

grep BR2_LINUX_KERNEL_VERSION buildroot/.config
  1. Introduction
  2. Build
  3. kmod
  4. Examples
    1. Host
    2. Buildroot
      1. hello
      2. hello2
      3. debugfs
      4. fops
Description
No description provided
Readme 202 MiB
Languages
Python 37.3%
C 33.8%
Assembly 13.6%
C++ 8.6%
Shell 3.7%
Other 2.8%