aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/proc.h
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2020-11-17 03:36:58 +0000
committerKyle Evans <kevans@FreeBSD.org>2020-11-17 03:36:58 +0000
commit63ecb272a00c6f084a33db1c6ad3e925d4dcf015 (patch)
treea9330aa55236df89262d4d139feccc0b1ef90754 /sys/sys/proc.h
parent4be0a1b5874b9713962580bafed2e452c6d104eb (diff)
downloadsrc-63ecb272a00c6f084a33db1c6ad3e925d4dcf015.tar.gz
src-63ecb272a00c6f084a33db1c6ad3e925d4dcf015.zip
umtx_op: reduce redundancy required for compat32
All of the compat32 variants are substantially the same, save for copyin/copyout (mostly). Apply the same kind of technique used with kevent here by having the syscall routines supply a umtx_copyops describing the operations needed. umtx_copyops carries the bare minimum needed- size of timespec and _umtx_time are used for determining if copyout is needed in the sem2_wait case. Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D27222
Notes
Notes: svn path=/head/; revision=367744
Diffstat (limited to 'sys/sys/proc.h')
-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 21b0a2f0a41c..7a61fcde69f2 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -519,6 +519,7 @@ do { \
#define TDP_SIGFASTPENDING 0x80000000 /* Pending signal due to sigfastblock */
#define TDP2_SBPAGES 0x00000001 /* Owns sbusy on some pages */
+#define TDP2_COMPAT32RB 0x00000002 /* compat32 robust lists */
/*
* Reasons that the current thread can not be run yet.