MCPcopy Create free account
hub / github.com/coreboot/coreboot / imd_cursor_init

Function imd_cursor_init

src/lib/imd.c:662–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

660}
661
662int imd_cursor_init(const struct imd *imd, struct imd_cursor *cursor)
663{
664 if (imd == NULL || cursor == NULL)
665 return -1;
666
667 memset(cursor, 0, sizeof(*cursor));
668
669 cursor->imdr[0] = &imd->lg;
670 cursor->imdr[1] = &imd->sm;
671
672 return 0;
673}
674
675const struct imd_entry *imd_cursor_next(struct imd_cursor *cursor)
676{

Callers 3

test_imd_cursor_initFunction · 0.85
test_imd_cursor_nextFunction · 0.85

Calls 1

memsetFunction · 0.70

Tested by 2

test_imd_cursor_initFunction · 0.68
test_imd_cursor_nextFunction · 0.68