mm/mempolicy.c: remove BUG_ON() checks for VMA inside mpol_misplaced()
[linux/fpc-iii.git] / tools / virtio / ringtest / noring.c
blobb8d1c1daac7cc089734c6a6cf3453ae7277abe62
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 bool used_empty()
29 return false;
32 void disable_call()
34 assert(0);
37 bool enable_call()
39 assert(0);
42 void kick_available(void)
44 assert(0);
47 /* host side */
48 void disable_kick()
50 assert(0);
53 bool enable_kick()
55 assert(0);
58 bool avail_empty()
60 return false;
63 bool use_buf(unsigned *lenp, void **bufp)
65 return true;
68 void call_used(void)
70 assert(0);