search for: kbd_sem

Displaying 3 results from an estimated 3 matches for "kbd_sem".

Did you mean: bd_sem
2012 Nov 28
4
[minios] Add xenbus shutdown control support
...7 @@ } #endif } + up(&blk_sem); } #define WIDTH 800 @@ -293,7 +299,6 @@ xfree(mfns); if (!fb_dev) { xfree(fb); - return; } up(&fbfront_sem); } @@ -330,17 +335,21 @@ } static struct kbdfront_dev *kbd_dev; +static struct semaphore kbd_sem = __SEMAPHORE_INITIALIZER(kbd_sem, 0); static void kbdfront_thread(void *p) { DEFINE_WAIT(w); DEFINE_WAIT(w2); + DEFINE_WAIT(w3); int x = WIDTH / 2, y = HEIGHT / 2, z = 0; kbd_dev = init_kbdfront(NULL, 1); - if (!kbd_dev) + down(&fbfront_sem); + if (!kbd_dev)...
2008 Feb 29
35
[RFC] PVFB: Add refresh period to XenStore parameters?
Hello, Sometimes the backend of PVFB knows that it doesn''t need permanent refresh, when the window is minimized for instance (no refresh at all), or the administration tools know that the window is thumnailed, and so a slow refresh rate is fine. Also, some users may want to tune the refresh rate according to the smoothness they would like, balanced with the CPU time that requires.
2009 Mar 02
0
[PATCH 4 of 13] DisplayState interface change
...ds->gui_timer_interval = buf[i].refresh_period.period; + dcl->idle = 0; + dcl->gui_timer_interval = buf[i].refresh_period.period; } default: /* ignore unknown events */ @@ -247,22 +225,19 @@ init_SEMAPHORE(&xs->kbd_sem, 0); xs->ds = ds; + xs->nonshared_vram = ds_get_data(ds); create_thread("kbdfront", kbdfront_thread, (void*) xs); - ds->data = xs->nonshared_vram = qemu_memalign(PAGE_SIZE, vga_ram_size); - memset(ds->data, 0, vga_ram_size); + dcl = qemu_mallocz(si...