]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - sys/kern/kern_exec.c
Provide ABI modules hooks for process exec/exit and thread exit.
authorkib <kib@FreeBSD.org>
Mon, 23 Nov 2020 17:29:25 +0000 (17:29 +0000)
committerkib <kib@FreeBSD.org>
Mon, 23 Nov 2020 17:29:25 +0000 (17:29 +0000)
commitb2d30a77c1902b5b569e31d4d58ae10bbc4e64a3
tree267303c56facc44c53ac4781f36ec353c8e63384
parent2654ad033a186abaa0784f1878a7dba9783c18d5
Provide ABI modules hooks for process exec/exit and thread exit.

Exec and exit are same as corresponding eventhandler hooks.

Thread exit hook is called somewhat earlier, while thread is still
owned by the process and enough context is available.  Note that the
process lock is owned when the hook is called.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D27309
sys/kern/kern_exec.c
sys/kern/kern_exit.c
sys/kern/kern_kthread.c
sys/kern/kern_thr.c
sys/sys/sysent.h