search for: max_buf

Displaying 6 results from an estimated 6 matches for "max_buf".

2019 Jun 29
0
[libnbd PATCH 6/6] examples: New example for strict read validations
...t;libnbd.h> + +/* A linked list of ranges still not seen. */ +struct range { + uint64_t first; + uint64_t last; + struct range *next; +}; + +/* Per-read data. */ +struct data { + uint64_t offset; + size_t count; + uint32_t flags; + size_t chunks; + struct range *remaining; +}; + +#define MAX_BUF (2 * 1024 * 1024) +static char buf[MAX_BUF]; + +/* Various statistics */ +static int total_data_chunks; +static int total_data_bytes; +static int total_hole_chunks; +static int total_hole_bytes; +static int total_chunks; +static int total_df_reads; +static int total_reads; +static int64_t total_byt...
2009 Nov 05
0
[PATCH] Add VirtIO Frame Buffer Support
...virtio.h> > +#include <linux/virtio_ids.h> > +#include <linux/virtio_config.h> > +#include <linux/uaccess.h> > +#include <linux/slab.h> > +#include <linux/interrupt.h> is interrupt.h needed? virito mostly abstracts this for you. > + > +#define MAX_BUF 128 > + > +struct virtio_fb_info { > + struct fb_info *fb_info; > + unsigned char *fb; > + char *inbuf; > + > + u16 width; > + u16 height; > + > + int nr_pages; > + int size; > + > + struct kmem_cache *cmd_cache; > + struct virtqueue *vq_in; &...
2009 Nov 05
0
[PATCH] Add VirtIO Frame Buffer Support
...virtio.h> > +#include <linux/virtio_ids.h> > +#include <linux/virtio_config.h> > +#include <linux/uaccess.h> > +#include <linux/slab.h> > +#include <linux/interrupt.h> is interrupt.h needed? virito mostly abstracts this for you. > + > +#define MAX_BUF 128 > + > +struct virtio_fb_info { > + struct fb_info *fb_info; > + unsigned char *fb; > + char *inbuf; > + > + u16 width; > + u16 height; > + > + int nr_pages; > + int size; > + > + struct kmem_cache *cmd_cache; > + struct virtqueue *vq_in; &...
2007 Jul 03
6
[PATCH 1/3] Virtio draft IV
In response to Avi's excellent analysis, I've updated virtio as promised (apologies for the delay, travel got in the way). === This attempts to implement a "virtual I/O" layer which should allow common drivers to be efficiently used across most virtual I/O mechanisms. It will no-doubt need further enhancement. The details of probing the device are left to hypervisor-specific
2007 Jul 03
6
[PATCH 1/3] Virtio draft IV
In response to Avi's excellent analysis, I've updated virtio as promised (apologies for the delay, travel got in the way). === This attempts to implement a "virtual I/O" layer which should allow common drivers to be efficiently used across most virtual I/O mechanisms. It will no-doubt need further enhancement. The details of probing the device are left to hypervisor-specific
2019 Jun 29
19
[libnbd PATCH 0/6] new APIs: aio_in_flight, aio_FOO_notify
I still need to wire in the use of *_notify functions into nbdkit to prove whether it makes the code any faster or easier to maintain, but at least the added example shows one good use case for the new API. Eric Blake (6): api: Add nbd_aio_in_flight generator: Allow DEAD state actions to run generator: Allow Int64 in callbacks states: Prepare for aio notify callback api: Add new