public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ethin Probst" <harlydavidsen@gmail.com>
To: devel@edk2.groups.io
Cc: Andrew Fish <afish@apple.com>,
	"Leif Lindholm (Nuvia address)" <leif@nuviainc.com>,
	Ray Ni <ray.ni@intel.com>
Subject: Using linked lists in EDK II
Date: Sun, 22 Aug 2021 22:37:35 -0500	[thread overview]
Message-ID: <CAJQtwF1DdEcmier15=5_HFWXTcnMyFLNergOiS9KWpLjF0wuUg@mail.gmail.com> (raw)

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 confused on primarily is where do I store LIST_ENTRY
pointers, and how do I write the structs so that I can actually pull
out the data that each list entry stores? From what I can tell, a
LIST_ENTRY just contains pointers to other LIST_ENTRY structs.)

-- 
Signed,
Ethin D. Probst

             reply	other threads:[~2021-08-23  3:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-23  3:37 Ethin Probst [this message]
2021-08-23  6:45 ` [edk2-devel] Using linked lists in EDK II Marvin Häuser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJQtwF1DdEcmier15=5_HFWXTcnMyFLNergOiS9KWpLjF0wuUg@mail.gmail.com' \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox