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
Get step-by-step solutions from verified subject matter experts
