tree: 0722f3d1980f32e0825fa78611226c87f6b2c995 [path history] [tgz]
  1. tests/
  2. bootfs.cc
  3. bootfs.h
  4. BUILD.gn
  5. loader-service.cc
  6. loader-service.h
  7. mapper.cc
  8. METADATA.textproto
  9. option.cc
  10. option.h
  11. OWNERS
  12. README.md
  13. start.cc
  14. userboot-elf.cc
  15. userboot-elf.h
  16. util.cc
  17. util.h
  18. vdso-syms.ld.h
  19. zbi.cc
  20. zbi.h
  21. zx_panic.cc
zircon/kernel/lib/userabi/userboot/README.md

Userboot

Svc Stub

Processes launched by userboot will be provided with a handle of PA_NS_DIR type and name ‘/svc’. This allows services to pipeline requests to services that might eventually be available. For now, this is only used for pipelining requests to fuchsia.debugdata.Publisher. The server side of the handle is stashed in the Svc Stash.

Svc Stash

The Svc Stash corresponds to the fuchsia.boot.SvcStash protocol. Essentially the server end of the handle is propagated to booted program through the handle table as PA_USER0 with argument 0.

Userboot will issue one fuchsia.boot.SvcStash/Push for each launch program, including the booted program itself. For example, if userboot would launch a test and then the booting program, it would issue a push for the test and the booting program. Each with their respective handles.