Question: System Call in C Programming for Linux Kernel Implement a system call print_self. This system call identifies the calling process at the user-level and print

System Call in C Programming for Linux Kernel

Implement a system call print_self. This system call identifies the calling process at the user-level and print out various information of the process. Implement the print_self system call and print out the following information of the calling process:

Process id, running state, and program name

Start time and virtual runtime

Its parent processes until init

HINT: The macro current returns a pointer to the task_struct of the current running process. See the following link for more information: http://linuxgazette.net/133/saha.html

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!