summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-05-11 21:28:37 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-05-11 21:28:37 +0000
commitb88cd712a78d7b1419ab419cd397b1db715c294b (patch)
tree202755f3fb1a3c84fe7fc4de1a8e8798c3eaf6b8
parente39cd3b25163d51c343f815fc0311ed9590f4f17 (diff)
Notes
-rw-r--r--sys/sys/proc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index d1115d8c6514..2d2f1f83f851 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -450,6 +450,7 @@ sigonstack(size_t sp)
#define PROC_UNLOCK(p) mtx_unlock(&(p)->p_mtx)
#define PROC_UNLOCK_NOSWITCH(p) \
mtx_unlock_flags(&(p)->p_mtx, MTX_NOSWITCH)
+#define PROC_LOCKED(p) mtx_owned(&(p)->p_mtx)
#define PROC_LOCK_ASSERT(p, type) mtx_assert(&(p)->p_mtx, (type))
/* Hold process U-area in memory, normally for ptrace/procfs work. */