diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2026-07-23 02:14:54 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2026-08-01 10:41:28 +0000 |
| commit | a24674ecab24abf6cc84262059b3e28bb0cd3a04 (patch) | |
| tree | ac6885f40640a6d0b2d612e53aa79691216d236c | |
| parent | e96f1cbd690e68594fc8812de634f43c6711aa97 (diff) | |
kern/kern_exit.c: make wait_fill_siginfo/wrusage global
Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D58407
| -rw-r--r-- | sys/kern/kern_exit.c | 4 | ||||
| -rw-r--r-- | sys/sys/proc.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 7fb3f115af9d..2e8e95e33d8c 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -1117,7 +1117,7 @@ proc_reap(struct thread *td, struct proc *p, int *status, int options) atomic_add_int(&nprocs, -1); } -static void +void wait_fill_siginfo(struct proc *p, siginfo_t *siginfo) { PROC_LOCK_ASSERT(p, MA_OWNED); @@ -1160,7 +1160,7 @@ wait_fill_siginfo(struct proc *p, siginfo_t *siginfo) */ } -static void +void wait_fill_wrusage(struct proc *p, struct __wrusage *wrusage) { struct rusage *rup; diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 9b98550b9f8c..cd2d4a318992 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -1237,6 +1237,8 @@ void cpu_throw(struct thread *, struct thread *) __dead2; void cpu_update_pcb(struct thread *); bool curproc_sigkilled(void); void userret(struct thread *, struct trapframe *); +void wait_fill_siginfo(struct proc *p, struct __siginfo *siginfo); +void wait_fill_wrusage(struct proc *p, struct __wrusage *wrusage); void cpu_exit(struct thread *); void exit1(struct thread *, int, int) __dead2; |
