search for: __semaphore_initializer

Displaying 5 results from an estimated 5 matches for "__semaphore_initializer".

2012 Nov 28
4
[minios] Add xenbus shutdown control support
...tart_info); diff -r fdf241ea6ff4 extras/mini-os/test.c --- a/extras/mini-os/test.c Wed Nov 28 21:29:18 2012 +0100 +++ b/extras/mini-os/test.c Wed Nov 28 22:53:42 2012 +0100 @@ -46,6 +46,7 @@ #include <xen/version.h> static struct netfront_dev *net_dev; +static struct semaphore net_sem = __SEMAPHORE_INITIALIZER(net_sem, 0); void test_xenbus(void); @@ -70,12 +71,14 @@ static void netfront_thread(void *p) { net_dev = init_netfront(NULL, NULL, NULL, NULL); + up(&net_sem); } static struct blkfront_dev *blk_dev; static struct blkfront_info blk_info; static uint64_t blk_size_read; stat...
2012 Dec 21
0
mini-os: Notify shutdown through weak function call instead of wake queue
...46 2012 +0100 @@ -45,6 +45,10 @@ #include <xen/features.h> #include <xen/version.h> +static unsigned int do_shutdown = 0; +static unsigned int shutdown_reason; +static DECLARE_WAIT_QUEUE_HEAD(shutdown_queue); + static struct netfront_dev *net_dev; static struct semaphore net_sem = __SEMAPHORE_INITIALIZER(net_sem, 0); @@ -487,6 +491,15 @@ #endif } +void app_shutdown(unsigned reason) +{ + shutdown_reason = reason; + wmb(); + do_shutdown = 1; + wmb(); + wake_up(&shutdown_queue); +} + static void shutdown_thread(void *p) { DEFINE_WAIT(w);
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.
2012 Nov 26
13
[PATCH 0 of 4] Minios improvements for app development
This patch series contains a set of patches making minios rather easier to use, from an application development point of view. Overview of patches: 1 Command line argument parsing support, from Xen. 2 Weak console handler function. 3 Build system tweaks for application directories. 4 Trailing whitespace cleanup. (because it is very messy) Patch 4 is likely to be more controversial than
2012 Jan 25
26
[PATCH v4 00/23] Xenstore stub domain
Changes from v3: - mini-os configuration files moved into stubdom/ - mini-os extra console support now a config option - Fewer #ifdefs - grant table setup uses hypercall bounce - Xenstore stub domain syslog support re-enabled Changes from v2: - configuration support added to mini-os build system - add mini-os support for conditionally compiling frontends, xenbus -