/* Search our internal record of configured devices (not the XenStore) to determine if the XenBus device indicated by Node is known to the system. */
STATIC XENBUS_PRIVATE_DATA* XenBusDeviceInitialized(IN XENBUS_DEVICE *Dev, IN CONST CHAR8 *Node)
/* Search our internal record of configured devices (not the XenStore) to determine if the XenBus device indicated by Node is known to the system. */
STATIC XENBUS_PRIVATE_DATA* XenBusDeviceInitialized(IN XENBUS_DEVICE *Dev, IN CONST CHAR8 *Node)
{
  LIST_ENTRY           *Entry;
  XENBUS_PRIVATE_DATA  *Child;
  XENBUS_PRIVATE_DATA  *Result;
  if (IsListEmpty (&Dev->ChildList)) {
    return NULL;
  }
  Result = NULL;
  for (Entry = GetFirstNode (&Dev->ChildList);
       !IsNodeAtEnd (&Dev->ChildList, Entry);
       Entry = GetNextNode (&Dev->ChildList, Entry))
  {
    Child = XENBUS_PRIVATE_DATA_FROM_LINK (Entry);
    if (!AsciiStrCmp (Child->XenBusIo.Node, Node)) {
      Result = Child;
      break;
    }
  }
  return (Result);
}