From 868a820a19ff66c370cf40573ac89738386513c3 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Fri, 16 May 2014 10:13:02 +0200 Subject: proc: move translation functions to mig-decls.h * proc/hash.c (reqport_find): Move this function... * proc/proc.h (process_drop): ... and this... * proc/mig-decls.h: ... here and rename them. * proc/mig-mutate.h: Update accordingly. --- proc/hash.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'proc/hash.c') diff --git a/proc/hash.c b/proc/hash.c index ed670a16..e4dc5ffd 100644 --- a/proc/hash.c +++ b/proc/hash.c @@ -76,17 +76,6 @@ task_find_nocreate (task_t task) return (!p || p->p_dead) ? 0 : p; } -/* Find the process corresponding to a given request port. */ -struct proc * -reqport_find (mach_port_t reqport) -{ - struct proc *p; - p = ports_lookup_port (proc_bucket, reqport, proc_class); - if (p && p->p_dead) - ports_port_deref (p); - return (!p || p->p_dead) ? 0 : p; -} - /* Find the process group corresponding to a given pgid. */ struct pgrp * pgrp_find (pid_t pgid) -- cgit v1.2.3