On 2/2/23 11:58, Peter Maydell wrote:
On Thu, 2 Feb 2023 at 10:47, Philippe Mathieu-Daudé <[email protected]> wrote:
Where is "len-reserved-regions" declared?

   DEFINE_PROP_ARRAY("reserved-regions", ...)

does this. For an array property "foo" the machinery creates an integer
property "foo-len", which must be set first. Setting that
then creates properties "foo[0]", "foo[1]", ... which can be set.

Oh indeed now I see the array prefix:

  #define PROP_ARRAY_LEN_PREFIX "len-"

Not obvious to realize while grepping.

Thanks for the quick answer!


Reply via email to