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

Function HwCommandCreateCallback

preempt/src/hal/hw_command.cpp:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82EXPORT_C_FUNC XResult HwCommandCreateCallback(HwCommandHandle *hw_cmd,
83 LaunchCallback launch, void *data)
84{
85 if (hw_cmd == nullptr) return kXSchedErrorInvalidValue;
86 std::shared_ptr<HwCommand> hw_cmd_shptr = std::make_shared<HwCallbackCommand>(launch, data);
87 *hw_cmd = HwCommandManager::Add(hw_cmd_shptr);
88 return kXSchedSuccess;
89}
90
91EXPORT_C_FUNC XResult HwCommandDestroy(HwCommandHandle hw_cmd)
92{

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected