fdt_set_node_status

The interface has the following parameters.
  • Synopsis:
    int fdt_set_node_status(void *fdt, int nodeoffset, enum fdt_status sta-tus, unsigned int error_code)
  • Description: The interface is used to set the status of a node.
  • Parameter:
    • fdt: The pointer to the DTB file.
    • status: The following statuses are available.
      • FDT_STATUS_OKAY -
      • FDT_STATUS_DISABLED -
      • FDT_STATUS_FAIL -
      • FDT_STATUS_FAIL_ERROR_CODE -
    • error_code: optional, only used if status is FDT_STATUS_FAIL_ERROR_CODE
  • Return:
    • Success: 0.
    • Failure: Any value other than 0.