Module capsules_system::process_policies

source ·
Expand description

Process policy implementations for the Tock kernel.

This file contains implementations of policies the Tock kernel can use when managing processes. For example, these policies control decisions such as whether a specific process should be restarted.

Structs§

  • Simply panic the entire board if a process faults.
  • Always restart the process if it faults.
  • Always restart the process if it faults, but print a debug message:
  • Simply stop the process and no longer schedule it if a process faults.
  • Stop the process and no longer schedule it if a process faults, but also print a debug message notifying the user that the process faulted and stopped.
  • Implementation of ProcessFaultPolicy that uses a threshold to decide whether to restart a process when it faults. If the process has been restarted more times than the threshold then the process will be stopped and no longer scheduled.
  • Implementation of ProcessFaultPolicy that uses a threshold to decide whether to restart a process when it faults. If the process has been restarted more times than the threshold then the board will panic.