git: 6e55ba5b3131 - main - Export the kernel API pgrp_calc_jobc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Dec 2024 18:23:10 UTC
The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=6e55ba5b31317b78df7f09d4b0f5a112a34b3917 commit 6e55ba5b31317b78df7f09d4b0f5a112a34b3917 Author: joyu liao <joyul@juniper.net> AuthorDate: 2024-12-13 18:22:53 +0000 Commit: Justin Hibbits <jhibbits@FreeBSD.org> CommitDate: 2024-12-13 18:25:46 +0000 Export the kernel API pgrp_calc_jobc Summary: Export the kernel API pgrp_calc_jobc for use by other modules or functions. Reviewed By: kib Obtained from: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D47539 --- sys/kern/kern_proc.c | 2 +- sys/sys/proc.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index 77ae6cbddea5..463ecb025317 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -725,7 +725,7 @@ jobc_parent(struct proc *p, struct proc *p_exiting) return (jobc_reaper(pp)); } -static int +int pgrp_calc_jobc(struct pgrp *pgrp) { struct proc *q; diff --git a/sys/sys/proc.h b/sys/sys/proc.h index df7ce6de91d9..2615fa0dc275 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -1176,6 +1176,7 @@ int p_canwait(struct thread *td, struct proc *p); struct pargs *pargs_alloc(int len); void pargs_drop(struct pargs *pa); void pargs_hold(struct pargs *pa); +int pgrp_calc_jobc(struct pgrp *pgrp); void proc_add_orphan(struct proc *child, struct proc *parent); int proc_get_binpath(struct proc *p, char *binname, char **fullpath, char **freepath);