Shutdown

API for shutting down a machine.

Functions

void metal_shutdown(int code) __attribute__((noreturn))

The public METAL shutdown interface.

Shuts down the machine, if the machine enables an interface for shutting down. When no interface is provided, will cause the machine to spin indefinitely.

Parameters
  • code: The return code to set. 0 indicates program success.