iio: temperature: add support for Maxim thermocouple chips
[linux/fpc-iii.git] / tools / virtio / ringtest / noring.c
blobeda2f4824130e36f3970794f1a4b396809e6de44
1 #define _GNU_SOURCE
2 #include "main.h"
3 #include <assert.h>
5 /* stub implementation: useful for measuring overhead */
6 void alloc_ring(void)
10 /* guest side */
11 int add_inbuf(unsigned len, void *buf, void *datap)
13 return 0;
17 * skb_array API provides no way for producer to find out whether a given
18 * buffer was consumed. Our tests merely require that a successful get_buf
19 * implies that add_inbuf succeed in the past, and that add_inbuf will succeed,
20 * fake it accordingly.
22 void *get_buf(unsigned *lenp, void **bufp)
24 return "Buffer";
27 void poll_used(void)
31 void disable_call()
33 assert(0);
36 bool enable_call()
38 assert(0);
41 void kick_available(void)
43 assert(0);
46 /* host side */
47 void disable_kick()
49 assert(0);
52 bool enable_kick()
54 assert(0);
57 void poll_avail(void)
61 bool use_buf(unsigned *lenp, void **bufp)
63 return true;
66 void call_used(void)
68 assert(0);