xenbus.h (858a0d7eb5300b5f620d98ab3c4b96c9d5f19131) | xenbus.h (332f791dc98d98116f4473b726f67c9321b0f31e) |
---|---|
1/****************************************************************************** 2 * xenbus.h 3 * 4 * Talks to Xen Store to figure out what devices we have. 5 * 6 * Copyright (C) 2005 Rusty Russell, IBM Corporation 7 * Copyright (C) 2005 XenSource Ltd. 8 * --- 24 unchanged lines hidden (view full) --- 33 34#ifndef _XEN_XENBUS_H 35#define _XEN_XENBUS_H 36 37#include <linux/device.h> 38#include <linux/notifier.h> 39#include <linux/mutex.h> 40#include <linux/export.h> | 1/****************************************************************************** 2 * xenbus.h 3 * 4 * Talks to Xen Store to figure out what devices we have. 5 * 6 * Copyright (C) 2005 Rusty Russell, IBM Corporation 7 * Copyright (C) 2005 XenSource Ltd. 8 * --- 24 unchanged lines hidden (view full) --- 33 34#ifndef _XEN_XENBUS_H 35#define _XEN_XENBUS_H 36 37#include <linux/device.h> 38#include <linux/notifier.h> 39#include <linux/mutex.h> 40#include <linux/export.h> |
41#include <linux/fs.h> |
|
41#include <linux/completion.h> 42#include <linux/init.h> 43#include <linux/slab.h> 44#include <xen/interface/xen.h> 45#include <xen/interface/grant_table.h> 46#include <xen/interface/io/xenbus.h> 47#include <xen/interface/io/xs_wire.h> 48 --- 121 unchanged lines hidden (view full) --- 170void unregister_xenstore_notifier(struct notifier_block *nb); 171 172int register_xenbus_watch(struct xenbus_watch *watch); 173void unregister_xenbus_watch(struct xenbus_watch *watch); 174void xs_suspend(void); 175void xs_resume(void); 176void xs_suspend_cancel(void); 177 | 42#include <linux/completion.h> 43#include <linux/init.h> 44#include <linux/slab.h> 45#include <xen/interface/xen.h> 46#include <xen/interface/grant_table.h> 47#include <xen/interface/io/xenbus.h> 48#include <xen/interface/io/xs_wire.h> 49 --- 121 unchanged lines hidden (view full) --- 171void unregister_xenstore_notifier(struct notifier_block *nb); 172 173int register_xenbus_watch(struct xenbus_watch *watch); 174void unregister_xenbus_watch(struct xenbus_watch *watch); 175void xs_suspend(void); 176void xs_resume(void); 177void xs_suspend_cancel(void); 178 |
178/* Used by xenbus_dev to borrow kernel's store connection. */ 179void *xenbus_dev_request_and_reply(struct xsd_sockmsg *msg); 180 | |
181struct work_struct; 182 | 179struct work_struct; 180 |
183/* Prepare for domain suspend: then resume or cancel the suspend. */ 184void xenbus_suspend(void); 185void xenbus_resume(void); | |
186void xenbus_probe(struct work_struct *); | 181void xenbus_probe(struct work_struct *); |
187void xenbus_suspend_cancel(void); | |
188 189#define XENBUS_IS_ERR_READ(str) ({ \ 190 if (!IS_ERR(str) && strlen(str) == 0) { \ 191 kfree(str); \ 192 str = ERR_PTR(-ERANGE); \ 193 } \ 194 IS_ERR(str); \ 195}) --- 34 unchanged lines hidden (view full) --- 230void xenbus_dev_error(struct xenbus_device *dev, int err, const char *fmt, ...); 231__printf(3, 4) 232void xenbus_dev_fatal(struct xenbus_device *dev, int err, const char *fmt, ...); 233 234const char *xenbus_strstate(enum xenbus_state state); 235int xenbus_dev_is_online(struct xenbus_device *dev); 236int xenbus_frontend_closed(struct xenbus_device *dev); 237 | 182 183#define XENBUS_IS_ERR_READ(str) ({ \ 184 if (!IS_ERR(str) && strlen(str) == 0) { \ 185 kfree(str); \ 186 str = ERR_PTR(-ERANGE); \ 187 } \ 188 IS_ERR(str); \ 189}) --- 34 unchanged lines hidden (view full) --- 224void xenbus_dev_error(struct xenbus_device *dev, int err, const char *fmt, ...); 225__printf(3, 4) 226void xenbus_dev_fatal(struct xenbus_device *dev, int err, const char *fmt, ...); 227 228const char *xenbus_strstate(enum xenbus_state state); 229int xenbus_dev_is_online(struct xenbus_device *dev); 230int xenbus_frontend_closed(struct xenbus_device *dev); 231 |
232extern const struct file_operations xen_xenbus_fops; 233extern struct xenstore_domain_interface *xen_store_interface; 234extern int xen_store_evtchn; 235 |
|
238#endif /* _XEN_XENBUS_H */ | 236#endif /* _XEN_XENBUS_H */ |