[Nut-upsdev] [RFC] apcsmart: switch processing to ICANON + minor fixes

Michal Soltys soltys at ziu.info
Sat Mar 12 01:10:35 UTC 2011


1) minor fixes

command '@' has been added to compat tables. All (?) APC models in smart
mode should handle it

ignore / alert sets have been adjusted to be more clear; lots of
comments added as well

upsdrv_shutdown_advanced() - fixed 'continue;' blocking certain
methods to be ever used

update author in comments

some other comments' updates

2) heavy stuff - ICANON

This patch add canonical processing mode. All reads and flushes are done
now by upsread() and upsflush(); '*' which is sort-of-alert (and behaves
as EOL), is handled in upsread(); upsread() behaviour is controlled
by SER_* flags; code has been updated to use new functions instead of
direct calls to ser_*();

Signed-off-by: Michal Soltys <soltys at ziu.info>
---
 drivers/apcsmart.c |  270 +++++++++++++++++++++++++++++++++++-----------------
 drivers/apcsmart.h |  127 ++++++++++++++++---------
 2 files changed, 267 insertions(+), 130 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-apcsmart-switch-processing-to-ICANON-minor-fixes.patch
Type: text/x-patch
Size: 24326 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20110312/87617b8e/attachment-0001.bin>


More information about the Nut-upsdev mailing list