public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Request for documentation of PID handling functions
@ 2008-07-28 22:59 David Howells
  2008-07-30  2:04 ` Pavel Emelyanov
  0 siblings, 1 reply; 3+ messages in thread
From: David Howells @ 2008-07-28 22:59 UTC (permalink / raw)
  To: Pavel Emelyanov; +Cc: dhowells, jmorris, linux-kernel


Hi Pavel,

Can you please provide documentation for the PID handling functions you
supplied in commit:

	7af5729474b5b8ad385adadab78d6e723e7655a3

In particular I'd like to know what locks are required when.  I'm trying to
determine if in this piece of code:

		read_lock(&tasklist_lock);
		ret = 0;
		if (pid != task_pid_vnr(current))
			ret = -EPERM;
		read_unlock(&tasklist_lock);

the lock of tasklist_lock is necessary.

David

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-07-30  9:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-28 22:59 Request for documentation of PID handling functions David Howells
2008-07-30  2:04 ` Pavel Emelyanov
2008-07-30  9:56   ` Oleg Nesterov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox