Skip to content

Commit

Permalink
Add message to different kmm-ci modules (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
enriquebelarte authored Nov 2, 2023
1 parent a513279 commit 3fe3df4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ci/kmm-kmod/kmm_ci_a.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ MODULE_DESCRIPTION("A simple kernel module for KMM CI");
MODULE_VERSION("0.01");

static int __init kmm_ci_init(void) {
printk(KERN_INFO "Hello, World!\n");
printk(KERN_INFO "Hello, World!. Loaded kmm-ci-a.\n");
return 0;
}

static void __exit kmm_ci_exit(void) {
printk(KERN_INFO "Goodbye, World!\n");
printk(KERN_INFO "Goodbye, World!. Unloaded kmm-ci-a\n");
}

module_init(kmm_ci_init);
Expand Down
1 change: 0 additions & 1 deletion ci/kmm-kmod/kmm_ci_b.c

This file was deleted.

20 changes: 20 additions & 0 deletions ci/kmm-kmod/kmm_ci_b.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>

MODULE_LICENSE("GPL");
MODULE_AUTHOR("Quentin Barrand");
MODULE_DESCRIPTION("A simple kernel module for KMM CI");
MODULE_VERSION("0.01");

static int __init kmm_ci_init(void) {
printk(KERN_INFO "Hello, World!. Loaded kmm-ci-b.\n");
return 0;
}

static void __exit kmm_ci_exit(void) {
printk(KERN_INFO "Goodbye, World!. Unloaded kmm-ci-b\n");
}

module_init(kmm_ci_init);
module_exit(kmm_ci_exit);

0 comments on commit 3fe3df4

Please sign in to comment.