Results 1 to 1 of 1
Thread: get process name in kernel code
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Dec 2011
get process name in kernel code
I am thinking that a way to do this could be by using pid of the current pointer and then read the commandline attribute from /proc. But I don't know how to use the system calls from within the linux code. Also this method which I am thinking doesn't seem so elegant. Could you please suggest me how to do this or some good method of doing this.