Displaying 1 result from an estimated 1 matches for "__ma_state".
2023 Feb 20
1
[PATCH drm-next v2 03/16] maple_tree: split up MA_STATE() macro
...users.
>>
>> Example:
>>
>> struct sample_iter {
>> struct ma_state mas;
>> struct sample_mgr *mgr;
>> struct sample_entry *entry;
>> };
>>
>> \#define SAMPLE_ITER(name, __mgr) \
>> struct sample_iter name = { \
>> .mas = __MA_STATE(&(__mgr)->mt, 0, 0),
>> .mgr = __mgr,
>> .entry = NULL,
>> }
>
> I see this patch is to allow for anonymous maple states, this looks
> good.
>
> I've a lengthy comment about the iterator that I'm adding here to head
> off anyone that may cop...