[Nut-upsdev] [RFC apcsmart V3 08/18] drivers/dstate: add dstate_getflags()

Michal Soltys soltys at ziu.info
Sun Mar 6 20:09:10 UTC 2011


On 11-03-06 18:10, Arjen de Korte wrote:
> Citeren Michal Soltys <soltys at ziu.info>:
>
>> In cases such as immutable flag over readable value, we have
>> to be able to acquire this info at driver level (to e.g. avoid
>> polling, if user defined a variable with 'override' prefix).
>
> I'm not sure I like this. While it may seem a waste of effort to poll
> for a variable and ignore the value later on, I'd prefer to do this in
> one location (the dstate_*() functions) and not in the driver as well.
>
> Best regards, Arjen

Actually I just realized that the value wouldn't be updated even if it 
was polled, after reading your other comments.

Ok let me rethink/redo the stuff.



More information about the Nut-upsdev mailing list