Re: Finding process' argv from task_struct

From: Augusto Cesar Radtke (radtke@zaz.com.br)
Date: Thu Mar 23 2000 - 20:10:18 EST


On Thu, 23 Mar 2000, Krisztian Flautner wrote:

>
> Thanks for the reply for my previous message. I should
> have been clearer: I would like to find out the command line
> of the program given a pointer to its task_struct. argv[0]
> should be enough but the rest would not hurt either.
> How do I do this?

Check task_struct->mm->arg_start and task_struct->mm->arg_end.

-augusto

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:39 EST