Date:2011-06-21 03:14:52 (8 years 3 months ago)
Author:Werner Almesberger
Commit:f4ca3aed63ef282f418093ba649fa39e193252db
Message:tools/atrf-proxy/: make WAIT 0 wait forever

- PROTOCOL: corrected obsolete part of WAIT behaviour
- PROTOCOL: mention that WAIT 0 waits forever
- atrf-proxy.c (cmd_more): don't convert WAIT argument 0 to 1
Files: tools/atrf-proxy/PROTOCOL (1 diff)
tools/atrf-proxy/atrf-proxy.c (1 diff)

Change Details

tools/atrf-proxy/PROTOCOL
8383Asynchrous interrupt notification
8484---------------------------------
8585
86The WAIT command is not answered until an interrupt or another command is
87received. WAIT returns the value of the IRQ_STATUS register. If WAIT
88times out before receiving an interrupt, it returns 0.
86The WAIT command is not answered until an interrupt or until a timeout.
87A timeout value of 0 means infinite. WAIT returns the value of the
88IRQ_STATUS register. If WAIT times out before receiving an interrupt,
89it returns 0.
tools/atrf-proxy/atrf-proxy.c
171171    if (!strcasecmp(cmd, "wait")) {
172172        int res;
173173
174        if (!n)
175            n = 1;
176174        res = atrf_interrupt_wait(dsc, n);
177175        if (atrf_error(dsc))
178176            return netio_printf(netio, "-I/O error\n");

Archive Download the corresponding diff file



interactive