Try out below commands

ps -aux

ps -aux | grep printk




Best wishes & Regards,

Ganesh :-)

“Winning doesn’t always mean being first, winning means you are doing better
than you have done before!”

http://ganeshghube.blogspot.com/



On Mon, Mar 22, 2010 at 8:13 AM, perumal316 <[email protected]> wrote:

> Hi,
>
> Is there any way to get the current process ID and the corresponding
> name of the application from the kernel module?
>
> I have tried using task->comm ,task->pid, current->pid etc But I am
> not getting the correct process ID.
>
> I want to printk the process ID and the application name each time a
> system call is called. System call should have a way to identify which
> process ID or application is calling it.
>
> Any other way to printk the process ID and the application name?
>
> Thanks In Advance,
> Perumal
>
> --
> You received this message because you are subscribed to the Linux Users
> Group.
> To post a message, send email to [email protected]
> To unsubscribe, send email to [email protected]
> For more options, visit our group at
> http://groups.google.com/group/linuxusersgroup
>
> To unsubscribe from this group, send email to linuxusersgroup+
> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> ME" as the subject.
>

-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup

To unsubscribe from this group, send email to 
linuxusersgroup+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to