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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!