diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2021-07-01 18:04:06 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-07-07 11:12:07 +0000 |
commit | 71ab344524a14f00f21c4c5638906d7b965d2b64 (patch) | |
tree | 6763ad271b1ef4fc105c8043113ab87c5d166485 /sys/sys/sysent.h | |
parent | edcf1054d3fb4772ade6a2c0b7afd9e28672385d (diff) | |
download | src-71ab344524a14f00f21c4c5638906d7b965d2b64.tar.gz src-71ab344524a14f00f21c4c5638906d7b965d2b64.zip |
Add sv_onexec_old() sysent hook for exec event
Unlike sv_onexec(), it is called from the old (pre-exec) sysentvec structure.
The old vmspace for the process is still intact during the call.
Reviewed by: dchagin, markj
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D30987
Diffstat (limited to 'sys/sys/sysent.h')
-rw-r--r-- | sys/sys/sysent.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/sysent.h b/sys/sys/sysent.h index e0e5e351ae20..869c140c06f5 100644 --- a/sys/sys/sysent.h +++ b/sys/sys/sysent.h @@ -150,6 +150,7 @@ struct sysentvec { u_long *sv_hwcap2; /* Value passed in AT_HWCAP2. */ const char *(*sv_machine_arch)(struct proc *); vm_offset_t sv_fxrng_gen_base; + void (*sv_onexec_old)(struct thread *td); void (*sv_onexec)(struct proc *, struct image_params *); void (*sv_onexit)(struct proc *); void (*sv_ontdexit)(struct thread *td); |