MCPcopy Create free account
hub / github.com/Bareflank/hypervisor / send_command_stop

Function send_command_stop

loader/tests/src/send_command_stop.c:38–47  ·  view source on GitHub ↗

* <!-- description --> * @brief Tells the hypervisor to stop * * <!-- inputs/outputs --> * @return LOADER_SUCCESS on success, LOADER_FAILURE on failure. */

Source from the content-addressed store, hash-verified

36 * @return LOADER_SUCCESS on success, LOADER_FAILURE on failure.
37 */
38NODISCARD int64_t
39send_command_stop(void) NOEXCEPT
40{
41 if (g_mut_send_command_stop > 0) {
42 --g_mut_send_command_stop;
43 return LOADER_FAILURE;
44 }
45
46 return LOADER_SUCCESS;
47}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected