Write a Linux kernel module to collect information of curren

Write a Linux kernel module to collect information of current running processes. When the kernel module is loaded, it should search for processes that has the highest number of children. It should build a linux queue that includes the following details: parent process id child process id child command line current count of the child process Also, all these details should be printed to the system log. When the kernel module is unloaded, print this process id, command line and number of children processes. Also, remove the created linux queue. Your code should not use \"for_each_process: macro to check for children. Make sure you handle all cases, exceptions and cover possible user mistakes. You must submit a compressed file that contains: kernel module folder sample user program run output of the kernel log output of the \"ps\" command to support your answer Rules for Delivery: Write your name, ID, semester, course number, and assignment number in the source file. Follow a reasonable coding and documentation style to make your code readable, with proper comments and indentation. Compress the files in one archive named: name_id_as3.zip and send it to me. Any violation of the above points means some marks will be deducted.

Solution

The proc filesystem is a pseudo-filesystem which provides an interface to kernel data structures. It is commonly mounted at /proc. Most of it is read-only, but some files allow kernel variables to be changed.

 Write a Linux kernel module to collect information of current running processes. When the kernel module is loaded, it should search for processes that has the

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site