projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ringtest: commonize implementation of poll_avail/poll_used
[cascardo/linux.git]
/
tools
/
virtio
/
ringtest
/
noring.c
diff --git
a/tools/virtio/ringtest/noring.c
b/tools/virtio/ringtest/noring.c
index
eda2f48
..
b8d1c1d
100644
(file)
--- a/
tools/virtio/ringtest/noring.c
+++ b/
tools/virtio/ringtest/noring.c
@@
-24,8
+24,9
@@
void *get_buf(unsigned *lenp, void **bufp)
return "Buffer";
}
return "Buffer";
}
-
void poll_used(void
)
+
bool used_empty(
)
{
{
+ return false;
}
void disable_call()
}
void disable_call()
@@
-54,8
+55,9
@@
bool enable_kick()
assert(0);
}
assert(0);
}
-
void poll_avail(void
)
+
bool avail_empty(
)
{
{
+ return false;
}
bool use_buf(unsigned *lenp, void **bufp)
}
bool use_buf(unsigned *lenp, void **bufp)