startup.lisp 605 B

1234567891011121314151617181920212223
  1. (in-package :hurd)
  2. (defcfun ("fsys_startup" %fsys-startup)
  3. err
  4. (bootstrap port)
  5. (flags open-flags)
  6. (control-port port)
  7. (control-poly msg-type-name)
  8. (realnode port-pointer))
  9. (defun fsys-startup (bootstrap flags send-right type)
  10. "This is sent by filesystem on its bootstrap port upon startup. Returns the underlying node port."
  11. (with-foreign-pointer (port (foreign-type-size 'port))
  12. (let ((err (%fsys-startup
  13. bootstrap
  14. flags
  15. send-right
  16. type
  17. port)))
  18. (select-error err (mem-ref port 'port)))))