summaryrefslogtreecommitdiff
path: root/include/mtdev.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-06-18 01:39:40 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-06-18 01:39:40 +0200
commit309df849b8ad3772b912d498eacda9f38a6e4f1e (patch)
tree03c47e2a3399672d4528397c1ef980601f0488b9 /include/mtdev.h
parentd62c625535494361b8ba0a004a1d24ce485f0b59 (diff)
Correct semantic error in mtdev_idle
The current semantics, that a non-empty conversion pipe means the device is not idle, is not very useful. This patch changes the semantics to simply checking if the fetch buffer is empty, and if there are no events to fetch from the device. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'include/mtdev.h')
-rw-r--r--include/mtdev.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mtdev.h b/include/mtdev.h
index 7d442f1..4170512 100644
--- a/include/mtdev.h
+++ b/include/mtdev.h
@@ -151,8 +151,8 @@ int mtdev_open(struct mtdev *dev, int fd);
151 * @fd: file descriptor of the kernel device 151 * @fd: file descriptor of the kernel device
152 * @ms: number of milliseconds to wait for activity 152 * @ms: number of milliseconds to wait for activity
153 * 153 *
154 * Returns true if the device is idle, i.e., there are no buffered 154 * Returns true if the device is idle, i.e., there are no fetched
155 * events and there is nothing to fetch from the kernel device. 155 * events in the pipe and there is nothing to fetch from the device.
156 */ 156 */
157int mtdev_idle(struct mtdev *dev, int fd, int ms); 157int mtdev_idle(struct mtdev *dev, int fd, int ms);
158 158