gfdt_add_node()
Create an FDT node (ARM)
Synopsis:
#include <qvm/firmware.h>int gfdt_add_node(int parent,
const char *nodename,
uint64_t unit)Arguments:
- parent
- An offset indicating where to add the node to the FDT; the new node will be the child of this parent node.
- nodename
- A pointer to the name of the new node.
- unit
- The unit number of the new node.
Description:
This function creates an FDT node as a child of the specified parent node if this child node isn't already present.
Returns:
The offset of the new FDT node, or a negative offset if the node already existed.
Page updated:
