Files
linux-kernel-module-cheat/host/README.md
Ciro Santilli d45ceace5d 0
2016-07-30 09:38:06 +01:00

35 lines
651 B
Markdown

# Host
Simple things that can be demonstrated by inserting a module into the currently running host. Tested on Ubuntu 16.04.
1. [hello](hello.c)
1. [ins_rm_mod.c](ins_rm_mod.c)
## Rationale
This method easier to setup, but it is not recommended for development, as:
- it may break your system.
- you can't control which kernel version to use
Use VMs instead.
## Usage
We only use it for super simple examples.
Build, insert and remove a hello world module:
make ins
make rm
make log
The last lines of the log should contain:
init_module
cleanup_module
Insert and remove a module from a C program:
make ins_rm_run