* getting a process name from task struct
@ 2000-11-09 17:45 Chris Swiedler
2000-11-09 18:03 ` George Anzinger
0 siblings, 1 reply; 2+ messages in thread
From: Chris Swiedler @ 2000-11-09 17:45 UTC (permalink / raw)
To: Linux-Kernel
Is it possible to get a process's name / full execution path (from
kernelspace) given only a task struct? I can't find any pointers to this
information in the task struct, and I don't know where else it might be. ps
seems to be able to get the process name, but that's from userspace.
Apologies in advance if this is a stupid question.
chris
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: getting a process name from task struct
2000-11-09 17:45 getting a process name from task struct Chris Swiedler
@ 2000-11-09 18:03 ` George Anzinger
0 siblings, 0 replies; 2+ messages in thread
From: George Anzinger @ 2000-11-09 18:03 UTC (permalink / raw)
To: Chris Swiedler; +Cc: Linux-Kernel
Chris Swiedler wrote:
>
> Is it possible to get a process's name / full execution path (from
> kernelspace) given only a task struct? I can't find any pointers to this
> information in the task struct, and I don't know where else it might be. ps
> seems to be able to get the process name, but that's from userspace.
> Apologies in advance if this is a stupid question.
>
> chris
>
Try the "comm" member of task_struct. (Clear name, right?)
George
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-11-09 18:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-09 17:45 getting a process name from task struct Chris Swiedler
2000-11-09 18:03 ` George Anzinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).