Skip to content
This repository was archived by the owner on Aug 9, 2020. It is now read-only.

Commit d5f8a36

Browse files
committed
Update proj 1.
1 parent b9f6ed2 commit d5f8a36

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Project1/simple/simple.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1+
# include <linux/gcd.h>
2+
# include <linux/hash.h>
13
# include <linux/init.h>
24
# include <linux/kernel.h>
35
# include <linux/module.h>
46

57
int simple_init(void) {
68
printk(KERN_INFO "Loading Kernel Module\n");
9+
printk(KERN_INFO "The golden ratio prime is: %llu\n", GOLDEN_RATIO_PRIME);
710
return 0;
811
}
912

1013
void simple_exit(void) {
1114
printk(KERN_INFO "Removing Kernel Module\n");
15+
printk(KERN_INFO "The greatest common divisor of %d and %d is: %lu\n", 3300, 24, gcd(3300, 24));
1216
}
1317

1418
module_init(simple_init);

Project3/multithreaded-sort/sort

16.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)