osfmk/man/DMN_port_destroyed.html
Server Interface - Handle the current instance of a port-destroyed notification.
**kern\_return\_t do\_mach\_notify\_port\_destroyed**** (notify\_port\_t **notify,** mach\_port\_receive\_t **name** ); ****kern\_return\_t do\_seqnos\_mach\_notify\_port\_destroyed**** (mach\_port\_t **notify,** mach\_port\_seqno\_t **seqno,** mach\_port\_receive\_t **name** );**
notify[in notify (receive) right] The port to which the notification was sent.
seqno[in scalar] The sequence number of this message relative to the notification port.
name[in scalar] The invalid name.
A do_mach_notify_port_destroyed function is called by notify_server as the result of a kernel message indicating that a receive right would have been destroyed. notify is the port named via mach_port_request_notification or mach_msg.
This interface is machine word length specific because of the port name parameter.
Only generic errors apply.
Functions: notify_server, seqnos_notify_server, mach_msg, mach_port_request_notification, do_mach_notify_dead_name, do_mach_notify_no_senders, do_mach_notify_send_once.