MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / DTIterateEntries

Function DTIterateEntries

Library/DeviceTreeLib/DeviceTreeLib.c:331–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331EFI_STATUS
332DTIterateEntries (
333 IN DTEntryIterator Iterator,
334 IN DTEntry *NextEntry
335 )
336{
337 if (Iterator->CurrentIndex >= Iterator->CurrentScope->NumChildren) {
338 *NextEntry = NULL;
339 return EFI_END_OF_MEDIA;
340 }
341
342 ++Iterator->CurrentIndex;
343 if (Iterator->CurrentIndex == 1) {
344 Iterator->CurrentEntry = GetFirstChild (Iterator->CurrentScope);
345 } else {
346 Iterator->CurrentEntry = GetNextChild (Iterator->CurrentEntry);
347 }
348 *NextEntry = Iterator->CurrentEntry;
349 return EFI_SUCCESS;
350}
351
352EFI_STATUS
353DTRestartEntryIteration (

Callers 1

Calls 2

GetFirstChildFunction · 0.70
GetNextChildFunction · 0.70

Tested by

no test coverage detected