port-destruction.lisp 613 B

1234567891011121314151617181920212223242526
  1. ;;
  2. ;; This file implements all the port destruction functions.
  3. ;;
  4. (defcfun ("mach_port_deallocate" %mach-port-deallocate!)
  5. err
  6. (task ipc-space)
  7. (name port))
  8. (defun port-deallocate! (name &optional (task (task-self)))
  9. "Deallocates a port in a task ipc namespace"
  10. (%mach-port-deallocate! task name))
  11. (defcfun ("mach_port_destroy" %mach-port-destroy!)
  12. err
  13. (task ipc-space)
  14. (port-name port))
  15. (defun port-destroy! (port-name &optional (task (task-self)))
  16. "Deallocates all rights denoted by a name. The name becomes immediately available for reuse."
  17. (%mach-port-destroy! task port-name))