diff options
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/mach_port.c | 10 | ||||
-rw-r--r-- | ipc/mach_port.h | 4 |
2 files changed, 14 insertions, 0 deletions
diff --git a/ipc/mach_port.c b/ipc/mach_port.c index 5cc39984..b30dcd6c 100644 --- a/ipc/mach_port.c +++ b/ipc/mach_port.c @@ -1566,3 +1566,13 @@ mach_port_clear_protected_payload( ip_unlock(port); return KERN_SUCCESS; } + +#if MACH_KDB + +void +db_debug_port_references (boolean_t enable) +{ + mach_port_deallocate_debug = enable; +} + +#endif /* MACH_KDB */ diff --git a/ipc/mach_port.h b/ipc/mach_port.h index c4d9a1c3..073f7946 100644 --- a/ipc/mach_port.h +++ b/ipc/mach_port.h @@ -65,4 +65,8 @@ mach_port_get_receive_status( mach_port_t name, mach_port_status_t *statusp); +#if MACH_KDB +void db_debug_port_references (boolean_t enable); +#endif /* MACH_KDB */ + #endif /* _IPC_MACH_PORT_H_ */ |