diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-01-09 00:27:30 -0500 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-09 20:09:16 +0100 |
commit | d2c5a6387667b658cfa8549d6b7306fe1f71f3a8 (patch) | |
tree | c0e0efdd96eae122f776bfe8f2fb3b30528f01b7 /ddb | |
parent | 9d2dfdd0727ae6b3029ca36a940d68c435011b92 (diff) | |
download | gnumach-d2c5a6387667b658cfa8549d6b7306fe1f71f3a8.tar.gz gnumach-d2c5a6387667b658cfa8549d6b7306fe1f71f3a8.tar.bz2 gnumach-d2c5a6387667b658cfa8549d6b7306fe1f71f3a8.zip |
Remove unused db_lookup_port
Message-Id: <Y7ulwrbHJZqKoBPn@jupiter.tail36e24.ts.net>
Diffstat (limited to 'ddb')
-rw-r--r-- | ddb/db_print.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/ddb/db_print.c b/ddb/db_print.c index 6d4c59d3..3fbafe74 100644 --- a/ddb/db_print.c +++ b/ddb/db_print.c @@ -480,23 +480,6 @@ db_port_iterate(const thread_t thread, void (*func)(int, const ipc_port_t, unsig return(n); } -ipc_port_t -db_lookup_port( - thread_t thread, - int id) -{ - ipc_entry_t entry; - - if (thread == THREAD_NULL) - return(0); - if (id < 0) - return(0); - entry = ipc_entry_lookup(thread->task->itk_space, (mach_port_name_t) id); - if (entry && entry->ie_bits & MACH_PORT_TYPE_PORT_RIGHTS) - return((ipc_port_t)entry->ie_object); - return(0); -} - static void db_print_port_id(int id, const ipc_port_t port, unsigned bits, int n) { |