> On Jul 10, 2025, at 13:53, Jakub Jelinek <ja...@redhat.com> wrote:
> 
> On Thu, Jul 10, 2025 at 05:49:53PM +0000, Qing Zhao wrote:
>> One more note here, previously, ACCESS_MODE has 5 values:
>>     -1: Unknown access semantics
>>      0: none
>>      1: read_only
>>      2: write_only
>>      3: read_write
>> 
>> For counted_by, I passed “-1” to the .ACCESS_WITH_SIZE.
>> 
>> With the new design, ACCESS_MODE has only 4 values (I think that the -1 is 
>> not necessary, 0 should be enough)
>> 
>>        0: none
>>        1: read_only
>>        2: write_only
>>        3: read_write
>> 
>> For counted_by, I passed “0” to the .ACCESS_WITH_SIZE.
>> 
>> Later, when we reimplement the “access” attribute by using 
>> .ACCESS_WITH_SIZE, the ACCESS_MODE will be used
>> At that time. 
>> 
>> What do you think?
> 
> Another value (like 4) can always be added to the set if needed, it can be a
> bitmask, etc.

Yeah, might need more values later when we use this function to implement other 
attributes. 

thanks.
Qing
> 
> Jakub
> 

Reply via email to