14/01/2021 15:46, Anatoly Burakov: > +struct rte_power_monitor_cond { > + volatile void *addr; /**< Address to monitor for changes */ > + uint64_t val; /**< Before attempting the monitoring, the address > + * may be read and compared against this value.
"may" be read and compared? Is there a case where there is no read and compare? > + **/ > + uint64_t mask; /**< 64-bit mask to extract current value from addr */ > + uint8_t data_sz; /**< Data size (in bytes) that will be used to compare > + * expected value with the memory address. Can be 1, > + * 2, 4, or 8. Supplying any other value will lead to > + * undefined result. */ Other parameters are not prefixed with "data_", so I think this field could be simply named "size". > +}; I understand this struct is a direct translation of what existed in 20.11 as function parameters and comments. If you agree, these comments could be addressed in a separate patch.