aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/proc.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2018-03-24 13:51:27 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2018-03-24 13:51:27 +0000
commited9e8bc4681f06db333ea9d4a301de3e18f79ac1 (patch)
tree5395b7ee10496b75e070eea943a4c07d04a19942 /sys/sys/proc.h
parent63b5d112b6d1fe36adf2f1c12e98df2c35117086 (diff)
downloadsrc-ed9e8bc4681f06db333ea9d4a301de3e18f79ac1.tar.gz
src-ed9e8bc4681f06db333ea9d4a301de3e18f79ac1.zip
Account the size of the vslock-ed memory by the thread.
Assert that all such memory is unwired on return to usermode. The count of the wired memory will be used to detect the copyout mode. Tested by: pho (as part of the larger patch) Sponsored by: The FreeBSD Foundation MFC after: 1 week
Notes
Notes: svn path=/head/; revision=331490
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 9bc75db8591a..82b16059dc0d 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -297,6 +297,7 @@ struct thread {
void *td_su; /* (k) FFS SU private */
sbintime_t td_sleeptimo; /* (t) Sleep timeout. */
int td_rtcgen; /* (s) rtc_generation of abs. sleep */
+ size_t td_vslock_sz; /* (k) amount of vslock-ed space */
#define td_endzero td_sigmask
/* Copied during fork1() or create_thread(). */