> Plan B:
> It only returns the attribute and length of the first part, leaving it up to 
> the caller to decide to look for the next part.
> I'm leaning toward plan B, what do you think?

I like plan B as well. Do you think that "EndAddress" can be removed from the 
param list?

Imaging from caller perspective, the code can be like follows:
BaseAddress = 0;
While (TRUE) {
  GetMemoryRegionAttributes (
    BaseAddress,
    &Length,
    &Attributes
  );
  If (Length == 0) {
    Break;
  }
  // dump BaseAddress, Length, Attributes
  BaseAddress += Length;
}


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112694): https://edk2.groups.io/g/devel/message/112694
Mute This Topic: https://groups.io/mt/103129095/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: 
https://edk2.groups.io/g/devel/leave/9847357/21656/1706620634/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to