summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2020-08-26 03:19:10 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2020-08-26 03:19:10 +0000
commit91ad7c9d87940ba5b40c716dcf258718ff757f54 (patch)
tree4296e70f71594d3998868219a89d6ef76ad75a20
parenta267b66d1f46a80445b929053ac8da45f1aeee08 (diff)
Annotate locking of ps_single.
Prompted by mpi@
-rw-r--r--sys/sys/proc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 1bcf5fd0ea1..c04b5a5e54f 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: proc.h,v 1.298 2020/08/11 14:57:56 cheloha Exp $ */
+/* $OpenBSD: proc.h,v 1.299 2020/08/26 03:19:09 visa Exp $ */
/* $NetBSD: proc.h,v 1.44 1996/04/22 01:23:21 christos Exp $ */
/*-
@@ -154,6 +154,7 @@ struct unveil;
* m this process' `ps_mtx'
* p this process' `ps_lock'
* R rlimit_lock
+ * S scheduler lock
* T itimer_mtx
*/
struct process {
@@ -201,7 +202,7 @@ struct process {
u_int ps_flags; /* [a] PS_* flags. */
int ps_siglist; /* Signals pending for the process. */
- struct proc *ps_single; /* Single threading to this thread. */
+ struct proc *ps_single; /* [S] Thread for single-threading. */
u_int ps_singlecount; /* [a] Not yet suspended threads. */
int ps_traceflag; /* Kernel trace points. */