cregit-Linux how code gets into the kernel

Release 4.7 tools/virtio/ringtest/noring.c


#define _GNU_SOURCE
#include "main.h"
#include <assert.h>

/* stub implementation: useful for measuring overhead */

void alloc_ring(void) { }

Contributors

PersonTokensPropCommitsCommitProp
michael s. tsirkinmichael s. tsirkin6100.00%1100.00%
Total6100.00%1100.00%

/* guest side */
int add_inbuf(unsigned len, void *buf, void *datap) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
michael s. tsirkinmichael s. tsirkin19100.00%1100.00%
Total19100.00%1100.00%

/* * skb_array API provides no way for producer to 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"; }

Contributors

PersonTokensPropCommitsCommitProp
michael s. tsirkinmichael s. tsirkin18100.00%1100.00%
Total18100.00%1100.00%


void poll_used(void) { }

Contributors

PersonTokensPropCommitsCommitProp
michael s. tsirkinmichael s. tsirkin6100.00%1100.00%
Total6100.00%1100.00%


void disable_call() { assert(0); }

Contributors

PersonTokensPropCommitsCommitProp
michael s. tsirkinmichael s. tsirkin10100.00%1100.00%
Total10100.00%1100.00%


bool enable_call() { assert(0); }

Contributors

PersonTokensPropCommitsCommitProp
michael s. tsirkinmichael s. tsirkin10100.00%1100.00%
Total10100.00%1100.00%


void kick_available(void) { assert(0); }

Contributors

PersonTokensPropCommitsCommitProp
michael s. tsirkinmichael s. tsirkin12100.00%1100.00%
Total12100.00%1100.00%

/* host side */
void disable_kick() { assert(0); }

Contributors

PersonTokensPropCommitsCommitProp
michael s. tsirkinmichael s. tsirkin10100.00%1100.00%
Total10100.00%1100.00%


bool enable_kick() { assert(0); }

Contributors

PersonTokensPropCommitsCommitProp
michael s. tsirkinmichael s. tsirkin10100.00%1100.00%
Total10100.00%1100.00%


void poll_avail(void) { }

Contributors

PersonTokensPropCommitsCommitProp
michael s. tsirkinmichael s. tsirkin6100.00%1100.00%
Total6100.00%1100.00%


bool use_buf(unsigned *lenp, void **bufp) { return true; }

Contributors

PersonTokensPropCommitsCommitProp
michael s. tsirkinmichael s. tsirkin17100.00%1100.00%
Total17100.00%1100.00%


void call_used(void) { assert(0); }

Contributors

PersonTokensPropCommitsCommitProp
michael s. tsirkinmichael s. tsirkin12100.00%1100.00%
Total12100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
michael s. tsirkinmichael s. tsirkin149100.00%1100.00%
Total149100.00%1100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}