Name
__of_node_dup —
Duplicate or create an empty device tree node
Synopsis
struct device_node * __of_node_dup ( | const struct device_node * np, |
| const char * fmt, |
| ...) ; |
Arguments
np
NULL or node to copy
fmt
Format string for new full name of the node
@...: varargs for fmt
...
variable arguments
Description
Create a device tree node. If np
is not NULL then copy all of the
the properties of np
to the new node. The new properties do not
contain any pointers to the contents of the copied properties.
The OF_DYNAMIC and OF_DETACHED flags of the new node are set.
Return
Pointer to the new node or NULL on memory allocation error.