#define OPAL_GET_DEVICE_TREE 118 int64_t opal_get_device_tree(uint32_t phandle, uint64_t buf, uint64_t len);
Get device sub-tree.
root device node phandle of the device sub-tree
FDT blob buffer or NULL
length of the FDT blob buffer
Retrieve device sub-tree. The root node’s phandle is identified by @phandle. The typical use is for the kernel to update its device tree following a change in hardware (e.g. PCI hotplug).
- FDT blob size
returned FDT blob buffer size when
FDT blob is created successfully
invalid argument @phandle or @len
failure creating FDT blob when calculating its size
not enough room in buffer for device sub-tree
failure creating FDT blob