MCPcopy Create free account
hub / github.com/XpuOS/xsched / HwCommandDestroy

Function HwCommandDestroy

preempt/src/hal/hw_command.cpp:91–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91EXPORT_C_FUNC XResult HwCommandDestroy(HwCommandHandle hw_cmd)
92{
93 std::shared_ptr<HwCommand> hw_cmd_shptr = HwCommandManager::Del(hw_cmd);
94 if (hw_cmd_shptr == nullptr) {
95 XWARN("HwCommand with handle 0x" FMT_64X " does not exist or not registered", hw_cmd);
96 return kXSchedErrorNotFound;
97 }
98 return kXSchedSuccess;
99}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected