In this assignment, you need to write a kernel module named xyz that lists current processes/tasks in a Linux system based on given selection criteria. Remember that the Process Control Block (PCB) in Linux is represented by the structure task_struct, which is found in the include file. In your code, you are required to iterate over all the current processes in the system using a Depth-First Search (DFS) tree. Also, use list_for_each(…) macro in your solution in order to direct your DFS.  Your code output should appear in the kernel log buffer that can be viewed by using the dmesg command. Verify your code by comparing the contents of the kernel log buffer with the output of the following command ps -eLf that lists all processes including threads in the system.  i. Print name and ID of all current processes in the system. (25 pts.) ii. Print information about of the processes into the kernel log that fits to below queries  a. What are the name, ID and priority value of the processes having ID <  100 ? (25 pts.)  b. If the process named “gedit” exist in the system, what is its parent process name and ID ? (25 pts.) c. What are the name and ID of the processes whose states are runnable ? (25 pts.)




Why Choose Us

  • 100% non-plagiarized Papers
  • 24/7 /365 Service Available
  • Affordable Prices
  • Any Paper, Urgency, and Subject
  • Will complete your papers in 6 hours
  • On-time Delivery
  • Money-back and Privacy guarantees
  • Unlimited Amendments upon request
  • Satisfaction guarantee

How it Works

  • Click on the “Place Order” tab at the top menu or “Order Now” icon at the bottom and a new page will appear with an order form to be filled.
  • Fill in your paper’s requirements in the "PAPER DETAILS" section.
  • Fill in your paper’s academic level, deadline, and the required number of pages from the drop-down menus.
  • Click “CREATE ACCOUNT & SIGN IN” to enter your registration details and get an account with us for record-keeping and then, click on “PROCEED TO CHECKOUT” at the bottom of the page.
  • From there, the payment sections will show, follow the guided payment process and your order will be available for our writing team to work on it.