Question
C Language) Write a Linux loadable kernel module which lists all the processes currently running in your OS. Your program should do the following :
C Language) Write a Linux loadable kernel module which lists all the processes currently running in your OS. Your program should do the following:
1. Upon loading, the kernel module prints your name.
2. The kernel module then prints the init process first.
3. Then the kernel module prints all other processes one by one.
4. Once all processes are printed, the kernel module prints the current process.
5. When a process is printed, some of the process attributes must be printed on the same line
6. The module prints the number of processes found at the end.
7. Upon exiting, the kernel module prints your name
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started