search for: buffer_empty

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

2015 Aug 21
2
[PATCH 2/2] core/graphics: fix lss16 parsing
...35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/core/graphics.c b/core/graphics.c index 1604ab4..011be4a 100644 --- a/core/graphics.c +++ b/core/graphics.c @@ -54,6 +54,9 @@ typedef struct { static lssheader_t LSSHeader; +static uint16_t buffer_empty = 1; +static int buffer; + #define LSSMagic LSSHeader.LSSMagic #define GraphXSize LSSHeader.GraphXSize #define GraphYSize LSSHeader.GraphYSize @@ -114,15 +117,17 @@ static int vgasetmode(void) static inline char getnybble(void) { - char data = getc(fd); - - if (data & 0x10) { - data &am...
2015 Aug 20
4
boot logo via boot.txt
We recently have upgraded syslinux and have noticed that the boot logo code via boot.txt no longer works. I have a couple patches that get it close to working but I appear to be having trouble with color maps. Is there someone would want to help me finish figuring this out? Any interest in the patches I have to fix the rle decoder?
2013 Jan 03
20
[PATCH] Switch to poll in xenconsoled's io loop.
..._fd, &readfds); - max_fd = MAX(evtchn_fd, max_fd); + SET_FDS(evtchn_fd, POLLIN); } } if (d->master_fd != -1) { + short events = 0; if (!d->is_dead && ring_free_bytes(d)) - FD_SET(d->master_fd, &readfds); + events |= POLLIN; if (!buffer_empty(&d->buffer)) - FD_SET(d->master_fd, &writefds); - max_fd = MAX(d->master_fd, max_fd); + events |= POLLOUT; + + if (events) + SET_FDS(d->master_fd, events); } } /* If any domain has been rate limited, we need to work - out what timeout to supply...
2005 Aug 30
4
Re: [Xen-changelog] New console transport and update xenconsoled.
...{ >- memmove(buffer->data + (buffer->size - buffer->max_capacity), >- buffer->data, buffer->max_capacity); >- buffer->data = realloc(buffer->data, buffer->max_capacity); >- buffer->capacity = buffer->max_capacity; >- } >-} >- >-static bool buffer_empty(struct buffer *buffer) >-{ >- return buffer->size == 0; >-} >- >-static void buffer_advance(struct buffer *buffer, size_t size) >-{ >- size = MIN(size, buffer->size); >- memmove(buffer->data, buffer + size, buffer->size - size); >- buffer->size -= size; &gt...
2009 Jul 27
3
virtio-serial: An interface for host-guest communication
Hello all, This are the latest version of the patches. Lots of things have changed since the last submission. A few of which I remember: - VNC copy / paste works* (* conditions apply) - client vnc copies get propagated to guest port 3 (/dev/vmch3) - guest writes to port 3 (/dev/vmch3) go straight to client's clipboard - sysfs hooks to autodiscover ports - support for 64 ports in this
2009 Jul 27
3
virtio-serial: An interface for host-guest communication
Hello all, This are the latest version of the patches. Lots of things have changed since the last submission. A few of which I remember: - VNC copy / paste works* (* conditions apply) - client vnc copies get propagated to guest port 3 (/dev/vmch3) - guest writes to port 3 (/dev/vmch3) go straight to client's clipboard - sysfs hooks to autodiscover ports - support for 64 ports in this