mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-16 07:09:18 +00:00
The command module provides interfaces to find a command intance, register handler for specified command, dispatch command and invoke related handler. find_command: find a command instance by name. register_command_handler: register the handler for one command instance. dispatch_command_handlers: dispatch the command and invoke registered handler. v1-->v2: Only support single handler for one command instance. v2-->v3: Remove command id. Add error check to avoid regiter handler to command instance which has handler. Update the second parameter type of register_command_handler to avoid unnecessary type conversion. Tracked-On: #5921 Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>