summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2001-04-20 22:34:48 +0000
committeralfred <alfred@FreeBSD.org>2001-04-20 22:34:48 +0000
commitf1556a21a42fe7d360b61ebd3f367e26a42a3c77 (patch)
tree64785eb5f39ff68c19071504bb6722f95edd1e80
parentdf8f79b9de28f2867173984a35133ee13e616f69 (diff)
downloadFreeBSD-src-f1556a21a42fe7d360b61ebd3f367e26a42a3c77.zip
FreeBSD-src-f1556a21a42fe7d360b61ebd3f367e26a42a3c77.tar.gz
add a comment to note that a process's vmspace may change, but so far
only aiod does this and is also marked P_SYSTEM, the locations that reference p->p_vmspace usually do it within the context of the caller, the async access from the vm system is protected by the fact that it will skip over P_SYSTEM processes. Ok'd by: jhb
-rw-r--r--sys/sys/proc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index f824c57..aa496e0 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -126,7 +126,9 @@ struct pargs {
* associated comment.
* * - not yet protected
* a - only touched by curproc or parent during fork/wait
- * b - created at fork, never chagnes
+ * b - created at fork, never changes
+ * (exception aiods switch vmspaces, but they are also
+ * marked 'P_SYSTEM' so hopefully it will be left alone)
* c - locked by proc mtx
* d - locked by allproc_lock lock
* e - locked by proctree_lock lock
OpenPOWER on IntegriCloud