proc: remove zpfind

It is not used by anything. If someone wants it back it should be reimplemented
to use the proc hash.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
mjg 2019-08-28 01:22:21 +00:00
parent e32da7f6e9
commit 228802b54b
2 changed files with 0 additions and 20 deletions

View File

@ -1294,25 +1294,6 @@ pstats_free(struct pstats *ps)
free(ps, M_SUBPROC);
}
/*
* Locate a zombie process by number
*/
struct proc *
zpfind(pid_t pid)
{
struct proc *p;
sx_slock(&zombproc_lock);
LIST_FOREACH(p, &zombproc, p_list) {
if (p->p_pid == pid) {
PROC_LOCK(p);
break;
}
}
sx_sunlock(&zombproc_lock);
return (p);
}
#ifdef COMPAT_FREEBSD32
/*

View File

@ -994,7 +994,6 @@ struct proc *pfind(pid_t); /* Find process by id. */
struct proc *pfind_any(pid_t); /* Find (zombie) process by id. */
struct proc *pfind_any_locked(pid_t pid); /* Find process by id, locked. */
struct pgrp *pgfind(pid_t); /* Find process group by id. */
struct proc *zpfind(pid_t); /* Find zombie process by id. */
void pidhash_slockall(void); /* Shared lock all pid hash lists. */
void pidhash_sunlockall(void); /* Shared unlock all pid hash lists. */