Re: [edk2-devel] Using linked lists in EDK II

2021-08-22 Thread Marvin Häuser
Good day Ethin, Well, first of all, it's a doubly-linked list from the books, so you have a circular chain in both directions. There is no explicit "list head" type, rather you have a LIST_ENTRY instance that acts as your root (it may or may not contain data on its own based on your own design

[edk2-devel] Using linked lists in EDK II

2021-08-22 Thread Ethin Probst
Hey all, I've come across a situation where I need linked lists but I don't know how to actually use the linked list functionality. Looking at the API and existing uses of it doesn't really help -- it appears more complex than I'm sure it really is. Could someone explain how it works? (What I'm co