search for: poll_used

Displaying 8 results from an estimated 8 matches for "poll_used".

Did you mean: old_used
2016 Jan 21
1
[PATCH] tools/virtio: add ringtest utilities
...try(void) +{ + if (!do_exit) + return; + + wait_cycles(VMENTRY_CYCLES); +} + +/* implemented by ring */ +void alloc_ring(void); +/* guest side */ +int add_inbuf(unsigned, void *, void *); +void *get_buf(unsigned *, void **); +void disable_call(); +bool enable_call(); +void kick_available(); +void poll_used(); +/* host side */ +void disable_kick(); +bool enable_kick(); +bool use_buf(unsigned *, void **); +void call_used(); +void poll_avail(); + +/* implemented by main */ +extern bool do_sleep; +void kick(void); +void wait_for_kick(void); +void call(void); +void wait_for_call(void); + +extern unsigned...
2016 Jan 21
1
[PATCH] tools/virtio: add ringtest utilities
...try(void) +{ + if (!do_exit) + return; + + wait_cycles(VMENTRY_CYCLES); +} + +/* implemented by ring */ +void alloc_ring(void); +/* guest side */ +int add_inbuf(unsigned, void *, void *); +void *get_buf(unsigned *, void **); +void disable_call(); +bool enable_call(); +void kick_available(); +void poll_used(); +/* host side */ +void disable_kick(); +bool enable_kick(); +bool use_buf(unsigned *, void **); +void call_used(); +void poll_avail(); + +/* implemented by main */ +extern bool do_sleep; +void kick(void); +void wait_for_kick(void); +void call(void); +void wait_for_call(void); + +extern unsigned...
2016 May 24
0
[PATCH] tools/virtio: add noring tool
...find out whether a given + * buffer was consumed. Our tests merely require that a successful get_buf + * implies that add_inbuf succeed in the past, and that add_inbuf will succeed, + * fake it accordingly. + */ +void *get_buf(unsigned *lenp, void **bufp) +{ + return "Buffer"; +} + +void poll_used(void) +{ +} + +void disable_call() +{ + assert(0); +} + +bool enable_call() +{ + assert(0); +} + +void kick_available(void) +{ + assert(0); +} + +/* host side */ +void disable_kick() +{ + assert(0); +} + +bool enable_kick() +{ + assert(0); +} + +void poll_avail(void) +{ +} + +bool use_buf(unsigned...
2016 Nov 01
0
[PULL] virtio: tests, cleanups and fixes
...): virtio: console: Unlock vqs while freeing buffers Michael S. Tsirkin (2): virtio/vhost: add Jason to list of maintainers virtio_ring: mark vring_dma_dev inline Paolo Bonzini (3): ringtest: use link-time optimization ringtest: commonize implementation of poll_avail/poll_used ringtest: poll for new buffers once before updating event index Will Deacon (1): virtio_pci: Limit DMA mask to 44 bits for legacy virtio devices tools/virtio/ringtest/main.h | 4 +-- drivers/block/virtio_blk.c | 10 +++--- drivers/char/virtio_console.c...
2016 May 24
0
[PATCH] tools/virtio: add noring tool
...find out whether a given + * buffer was consumed. Our tests merely require that a successful get_buf + * implies that add_inbuf succeed in the past, and that add_inbuf will succeed, + * fake it accordingly. + */ +void *get_buf(unsigned *lenp, void **bufp) +{ + return "Buffer"; +} + +void poll_used(void) +{ +} + +void disable_call() +{ + assert(0); +} + +bool enable_call() +{ + assert(0); +} + +void kick_available(void) +{ + assert(0); +} + +/* host side */ +void disable_kick() +{ + assert(0); +} + +bool enable_kick() +{ + assert(0); +} + +void poll_avail(void) +{ +} + +bool use_buf(unsigned...
2016 Nov 01
0
[PULL] virtio: tests, cleanups and fixes
...): virtio: console: Unlock vqs while freeing buffers Michael S. Tsirkin (2): virtio/vhost: add Jason to list of maintainers virtio_ring: mark vring_dma_dev inline Paolo Bonzini (3): ringtest: use link-time optimization ringtest: commonize implementation of poll_avail/poll_used ringtest: poll for new buffers once before updating event index Will Deacon (1): virtio_pci: Limit DMA mask to 44 bits for legacy virtio devices tools/virtio/ringtest/main.h | 4 +-- drivers/block/virtio_blk.c | 10 +++--- drivers/char/virtio_console.c...
2016 Jun 13
0
[PATCH v8 2/5] ptr_ring: ring test
...the past, and that add_inbuf will succeed, + * fake it accordingly. + */ +void *get_buf(unsigned *lenp, void **bufp) +{ + void *datap; + + if (tailcnt == headcnt || __ptr_ring_full(&array)) + datap = NULL; + else { + datap = "Buffer\n"; + ++tailcnt; + } + + return datap; +} + +void poll_used(void) +{ + void *b; + + do { + if (tailcnt == headcnt || __ptr_ring_full(&array)) { + b = NULL; + barrier(); + } else { + b = "Buffer\n"; + } + } while (!b); +} + +void disable_call() +{ + assert(0); +} + +bool enable_call() +{ + assert(0); +} + +void kick_available(void) +{...
2016 Jun 13
0
[PATCH v8 2/5] ptr_ring: ring test
...the past, and that add_inbuf will succeed, + * fake it accordingly. + */ +void *get_buf(unsigned *lenp, void **bufp) +{ + void *datap; + + if (tailcnt == headcnt || __ptr_ring_full(&array)) + datap = NULL; + else { + datap = "Buffer\n"; + ++tailcnt; + } + + return datap; +} + +void poll_used(void) +{ + void *b; + + do { + if (tailcnt == headcnt || __ptr_ring_full(&array)) { + b = NULL; + barrier(); + } else { + b = "Buffer\n"; + } + } while (!b); +} + +void disable_call() +{ + assert(0); +} + +bool enable_call() +{ + assert(0); +} + +void kick_available(void) +{...