tree: cfb314ea82bc0df16d95c6df861160bf5d677e33 [search]
  1. meta/
  2. src/
  3. tests/
  4. BUILD.bazel
  5. BUILD.gn
  6. README.md
src/devices/usb/usb-policy/README.md

USB Policy

Module Layout

This document lays out the main responsibilities of the modules within the USB Policy codebase. It is not intended to capture all nuances of the modules' behaviors, but rather provide an orientation to the layout.

Note: module names (e.g. Controller) are capitalized throughout for clarity.

Main Loop

Implemented in: main.rs

Responsibilities:

  • Serves the FIDL protocols.
  • Handles FIDL requests by making calls to other modules.

Examples of data flow in common situations

The situations below illustrate how the modules cooperate to handle common scenarios. Similar to above, these situations aren't intended to capture every nuance of behavior.

TODO: b/496345275 - Add examples of data flow in common situations