xenstorevar.h (41716b8d5151d2bec72b6796ed58b6206cdb4779) | xenstorevar.h (cfa0b7b82fbdda56d7160569def5c6133eb045aa) |
---|---|
1/****************************************************************************** 2 * xenstorevar.h 3 * 4 * Method declarations and structures for accessing the XenStore.h 5 * 6 * Copyright (C) 2005 Rusty Russell, IBM Corporation 7 * Copyright (C) 2005 XenSource Ltd. 8 * Copyright (C) 2009,2010 Spectra Logic Corporation --- 38 unchanged lines hidden (view full) --- 47#include <xen/interface/io/xenbus.h> 48#include <xen/interface/io/xs_wire.h> 49 50#include "xenbus_if.h" 51 52/* XenStore allocations including XenStore data returned to clients. */ 53MALLOC_DECLARE(M_XENSTORE); 54 | 1/****************************************************************************** 2 * xenstorevar.h 3 * 4 * Method declarations and structures for accessing the XenStore.h 5 * 6 * Copyright (C) 2005 Rusty Russell, IBM Corporation 7 * Copyright (C) 2005 XenSource Ltd. 8 * Copyright (C) 2009,2010 Spectra Logic Corporation --- 38 unchanged lines hidden (view full) --- 47#include <xen/interface/io/xenbus.h> 48#include <xen/interface/io/xs_wire.h> 49 50#include "xenbus_if.h" 51 52/* XenStore allocations including XenStore data returned to clients. */ 53MALLOC_DECLARE(M_XENSTORE); 54 |
55struct xenstore_domain_interface; | |
56struct xs_watch; | 55struct xs_watch; |
57extern struct xenstore_domain_interface *xen_store; | |
58 59typedef void (xs_watch_cb_t)(struct xs_watch *, const char **vec, 60 unsigned int len); 61 62/* Register callback to watch subtree (node) in the XenStore. */ 63struct xs_watch 64{ 65 LIST_ENTRY(xs_watch) list; --- 14 unchanged lines hidden (view full) --- 80struct xs_transaction 81{ 82 uint32_t id; 83}; 84 85#define XST_NIL ((struct xs_transaction) { 0 }) 86 87/** | 56 57typedef void (xs_watch_cb_t)(struct xs_watch *, const char **vec, 58 unsigned int len); 59 60/* Register callback to watch subtree (node) in the XenStore. */ 61struct xs_watch 62{ 63 LIST_ENTRY(xs_watch) list; --- 14 unchanged lines hidden (view full) --- 78struct xs_transaction 79{ 80 uint32_t id; 81}; 82 83#define XST_NIL ((struct xs_transaction) { 0 }) 84 85/** |
86 * Check if Xenstore is initialized. 87 * 88 * \return True if initialized, false otherwise. 89 */ 90bool xs_initialized(void); 91 92/** 93 * Return xenstore event channel port. 94 * 95 * \return event channel port. 96 */ 97evtchn_port_t xs_evtchn(void); 98 99/** 100 * Return xenstore page physical memory address. 101 * 102 * \return xenstore page physical address. 103 */ 104vm_paddr_t xs_address(void); 105 106/** |
|
88 * Fetch the contents of a directory in the XenStore. 89 * 90 * \param t The XenStore transaction covering this request. 91 * \param dir The dirname of the path to read. 92 * \param node The basename of the path to read. 93 * \param num The returned number of directory entries. 94 * \param result An array of directory entry strings. 95 * --- 257 unchanged lines hidden --- | 107 * Fetch the contents of a directory in the XenStore. 108 * 109 * \param t The XenStore transaction covering this request. 110 * \param dir The dirname of the path to read. 111 * \param node The basename of the path to read. 112 * \param num The returned number of directory entries. 113 * \param result An array of directory entry strings. 114 * --- 257 unchanged lines hidden --- |