Can anybody tell me how to obtain process name if we have pid , in a kernel module??
I have tried the way of reading /proc/pid/status, But is there any other way to do so,, is it possible to read proces name from kernel data structures( like task_struct) ??
And i also want to know that ,
is it possible to open a file in kernel mode (kernel module) if so then which functions should be used to open file and read its contents??
Thanks in advance,,