gfdt_add_vdev()
Add a vdev node to the FDT (ARM)
Synopsis:
#include <qvm/firmware.h>int gfdt_add_vdev(int parent,
const char *name,
vdev_t *vdp)Arguments:
- parent
- The FDT parent node under which to add the vdev child node.
- name
- A string that specifies the vdev node's base name.
- vdp
- A pointer to the vdev to add.
Description:
The gfdt_add_vdev() function creates a node in the FDT for a given vdev instance. If the VM configuration gives a name to that vdev instance through the name configuration option, the function associates the name qvm_vdev_<name> to that node. (This is not the value of the name argument for this function. The node name in the FDT is meant to convey the node's purpose rather than identify a device.)
Returns:
The offset of the newly added node.
Page updated:
