);
-Original Message-
From: Giorgos Keramidas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2008 10:58 AM
To: Rao, Nikhil
Cc: Roman Divacky; freebsd-hackers@freebsd.org
Subject: Re: pfind() and the proc structure
On Tue, 1 Apr 2008 07:23:58 -0700, Rao, Nikhil [EMAIL PROTECTED]
wrote:
Ok, I
On Wed, 2 Apr 2008 10:59:26 -0700, Rao, Nikhil [EMAIL PROTECTED] wrote:
Thanks for all your replies,
the all_proc lock is held in pfind(..) at the point PROC_LOCK(p) is
obtained. In the kern_wait(..) code below, the allproc_lock is acquired
before removing the proc from the list of all procs.
Hi List,
The pfind(..) (in kern_proc.c) function below returns the proc structure
for the PID passed in
Say the thread that calls pfind() gets blocked at PROC_LOCK(p) (line 255
below), in the meantime what prevents the process from exiting and
deallocating the proc structure ? Maybe I am missing
On Mon, Mar 31, 2008 at 11:03:31PM -0700, Rao, Nikhil wrote:
Hi List,
The pfind(..) (in kern_proc.c) function below returns the proc structure
for the PID passed in
Say the thread that calls pfind() gets blocked at PROC_LOCK(p) (line 255
below), in the meantime what prevents the process
:56 AM
To: Rao, Nikhil
Cc: freebsd-hackers@freebsd.org
Subject: Re: pfind() and the proc structure
On Mon, Mar 31, 2008 at 11:03:31PM -0700, Rao, Nikhil wrote:
Hi List,
The pfind(..) (in kern_proc.c) function below returns the proc
structure
for the PID passed in
Say the thread that calls
On Tue, Apr 01, 2008 at 07:23:58AM -0700, Rao, Nikhil wrote:
Ok, I should have caught that :-( Another question -
Now that the PROC_LOCK on p is obtained the all_proc lock is released
and the function returns, at this point can't the proc get deallocated ?
well.. thats why you hold the proc
On Tue, 1 Apr 2008 07:23:58 -0700, Rao, Nikhil [EMAIL PROTECTED] wrote:
Ok, I should have caught that :-( Another question - Now that the
PROC_LOCK on p is obtained the all_proc lock is released and the
function returns, at this point can't the proc get deallocated ?
Nikhil
242 struct proc
7 matches
Mail list logo