generic_forward_device.h
This interface facilitates the creation of a virtual device used for dispatching faults to external handlers. For example when using CAmkES, a device frame for a real device can be given to a different CAmkES component and this virtual device will forward read and write faults over a CAmkES interface so the component can perform or emulate the actions.
Functions:
Structs:
The interface generic_forward_device.h
defines the following functions.
vm_install_generic_forward_device(vm, d, cfg)
Install the virtual forwarding device into a VM instance
Parameters:
vm {vm_t *}
: A handle to the VMVirtual {const struct device *}
: device being forwardedInterface {struct generic_forward_cfg}
: for forwarding the devices read and write faultsReturns:
Back to interface description.
The interface generic_forward_device.h
defines the following structs.
generic_forward_cfg
Interface for forwarding read and write faults
Elements:
write_fn {forward_write_fn}
: A callback for forwarding write faultsread_fn {forward_read_fn}
: A callback for forwarding read faultsBack to interface description.
Back to top.