Instructor: Dr. Aditya Nigam
Name | Roll No. | |
---|---|---|
A | Ashutosh Sharma | B18010 |
B | Anuj Goel | B18161 |
C | Om Pandey | B18182 |
Assignment problem sheet: Assignment Questions
gcc version: 9.3
- linux/module.h
- linux/kernel.h
- linux/init.h
- Hello World Module
- Type "cd Q1" on terminal
- Type "cd Hello_World" on terminal
- Type "make" on terminal
- Type "sudo insmode hello.ko" on terminal
- Type "modinfo hello.ko" on termninal to see details of module
- Type "tail /var/log/kern.log" on terminal to view kernel log
- Type "rmmod hello" to remove module from terminal
- Divide by 0 Module
- Type "cd Q1" on terminal
- Type "cd test1" on terminal
- Type "make" on terminal
- Type "sudo insmode test1.ko" on terminal
- Type "modinfo test1.ko" on termninal to see details of module
- Type "tail /var/log/kern.log" on terminal to view kernel log
- Type "rmmod test1" to remove module from terminal
- Return other than 1 Module
- Type "cd Q1" on terminal
- Type "cd test2" on terminal
- Type "make" on terminal
- Type "sudo insmode test2.ko" on terminal
- Type "modinfo test2.ko" on termninal to see details of module
- Type "tail /var/log/kern.log" on terminal to view kernel log
- Type "rmmod test2" to remove module from terminal
- Dereferencing a NULL pointer module
- Type "cd Q1" on terminal
- Type "cd test3" on terminal
- Type "make" on terminal
- Type "sudo insmode test3.ko" on terminal
- Type "modinfo test3.ko" on termninal to see details of module
- Type "tail /var/log/kern.log" on terminal to view kernel log
- Type "rmmod test3" to remove module from terminal
- iostream
- queue
- vector
- Enter Q2 folder
- Type "make" on terminal
- Type "./q2" on terminal
- The program will produce the required output
- iostream
- stdio.h
- cmath
- chrono
- pthread.h
- time.h
- stdlib.h
- Enter Q3 folder
- Type "make" on terminal
- Type "./myprogram" on terminal
- The program will produce the required output