[driver_runtime] Implementation for runtime protocol APIs.

The token manager stores PendingTokenInfo objects to represent
tokens that have not been exchanged. This is as either
fdf_token_register or fdf_token_exchange can happen first.

Once the corresponding call to the pending token occurs,
we schedule the callback as a CallbackRequest on the specified
dispatcher.

The token manager also listens for dropped tokens so it can
call the callback with ZX_ERR_CANCELED.

Multiply: fuchsia-pkg://fuchsia.com/driver_runtime_tests#meta/driver_runtime_tests.cm : 1000

Bug: 102201

Change-Id: I68d23b07fec8574ecd8373c7c39216385ae56d94
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/704415
Reviewed-by: Suraj Malhotra <surajmalhotra@google.com>
Commit-Queue: Jocelyn Dang <jocelyndang@google.com>
9 files changed
tree: 48f9b8b2b5c681dd9098b7879e2f8473df77e2aa
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. products/
  7. scripts/
  8. sdk/
  9. src/
  10. third_party/
  11. tools/
  12. zircon/
  13. .clang-format
  14. .clang-tidy
  15. .editorconfig
  16. .git-blame-ignore-revs
  17. .gitattributes
  18. .gitignore
  19. .gn
  20. .style.yapf
  21. analysis_options.yaml
  22. AUTHORS
  23. BUILD.gn
  24. CODE_OF_CONDUCT.md
  25. CONTRIBUTING.md
  26. LICENSE
  27. OWNERS
  28. PATENTS
  29. pyrightconfig.json
  30. README.md
  31. rustfmt.toml
README.md

Fuchsia

What is Fuchsia?

Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.

We expect everyone interacting with our project to respect our code of conduct.

Read more about Fuchsia's principles.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.