From 36c77acbbf34ccba153d385d13b2ed8dadbc8671 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 12 Jun 2024 15:03:00 +0200 Subject: [PATCH 1/3] Readme --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4b32f7e..9887abf 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,11 @@ # Linux kernel module -Requires: -`$ kmod kernel-devel kernel-headers` +### Requires: +`$ sudo dnf install kmod kernel-devel kernel-headers` -Build: +### Build: `$ make` + +### Insert & remove +`sudo insmod demo_module.ko` +`sudo rmmod demo_module.ko` From 0d0b534da68fbdfcc5091b7956e523e957b40d58 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 12 Jun 2024 15:03:43 +0200 Subject: [PATCH 2/3] Dmesg --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 9887abf..d244eb2 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,9 @@ ### Build: `$ make` +### Watch dmesg +`sudo dmesg -wT` + ### Insert & remove `sudo insmod demo_module.ko` `sudo rmmod demo_module.ko` From 0b971533b18167f15044d6d48811ff5fef4b2a76 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 12 Jun 2024 15:05:28 +0200 Subject: [PATCH 3/3] Ignore --- .gitignore | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea44c44 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +*.cmd +*.symvers +*.ko +*.mod +*.o +*.order +*.mod.c