Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this assignment you will write a LKM for the Linux kernel that displays the following details for all the processes whose PID is greater

In this assignment you will write a LKM for the Linux kernel that displays the following details for all the processes whose PID is greater than an integer given by the user as a module parameter:

PROCESS NAME

PID

STATE

PRIORITY

STATIC-PRIORITY

NORMAL-PRIORITY

As shown below, the PID is given as arguments while inserting the module in the kernel

image text in transcribed

The next screenshot shows the required details for a process, its child processes (may have 0 or more), and its parent process. You are expected to keep a similar format (not an exact one) for your output which is readable. Your programs must compile and run under Xubuntu (or another variant of Ubuntu) 16.04.

image text in transcribed

image text in transcribed

abhinav@abhinav-HP-ProBook-4520s:-/Desktops sudo insmod /Process-1.ko inp_pid-3500 abhinav@abhinav-HP-ProBook-4520s:-/Desktops abhinav@abhinav-HP-ProBook-4520s:-/Desktops sudo insmod /Process-1.ko inp_pid-3500 abhinav@abhinav-HP-ProBook-4520s:-/Desktops

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mastering Apache Cassandra 3 X An Expert Guide To Improving Database Scalability And Availability Without Compromising Performance

Authors: Aaron Ploetz ,Tejaswi Malepati ,Nishant Neeraj

3rd Edition

1789131499, 978-1789131499

More Books

Students also viewed these Databases questions

Question

Explain the meaning of the term source deductions.

Answered: 1 week ago

Question

Explain how cultural differences affect business communication.

Answered: 1 week ago

Question

List and explain the goals of business communication.

Answered: 1 week ago