Deleted Added
full compact
xenbusvar.h (222975) xenbusvar.h (231743)
1/******************************************************************************
2 * Copyright (C) 2005 Rusty Russell, IBM Corporation
3 * Copyright (C) 2005 XenSource Ltd.
4 *
5 * This file may be distributed separately from the Linux kernel, or
6 * incorporated into other software packages, subject to the following license:
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy

--- 9 unchanged lines hidden (view full) ---

18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24 * IN THE SOFTWARE.
25 *
1/******************************************************************************
2 * Copyright (C) 2005 Rusty Russell, IBM Corporation
3 * Copyright (C) 2005 XenSource Ltd.
4 *
5 * This file may be distributed separately from the Linux kernel, or
6 * incorporated into other software packages, subject to the following license:
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy

--- 9 unchanged lines hidden (view full) ---

18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24 * IN THE SOFTWARE.
25 *
26 * $FreeBSD: head/sys/xen/xenbus/xenbusvar.h 222975 2011-06-11 04:59:01Z gibbs $
26 * $FreeBSD: head/sys/xen/xenbus/xenbusvar.h 231743 2012-02-15 06:45:49Z gibbs $
27 */
28
29/**
30 * \file xenbusvar.h
31 *
32 * \brief Datastructures and function declarations for usedby device
33 * drivers operating on the XenBus.
34 */

--- 64 unchanged lines hidden (view full) ---

99 * \param path The root XenStore path for the device.
100 *
101 * \return The current state of the device or XenbusStateClosed if no
102 * state can be read.
103 */
104XenbusState xenbus_read_driver_state(const char *path);
105
106/**
27 */
28
29/**
30 * \file xenbusvar.h
31 *
32 * \brief Datastructures and function declarations for usedby device
33 * drivers operating on the XenBus.
34 */

--- 64 unchanged lines hidden (view full) ---

99 * \param path The root XenStore path for the device.
100 *
101 * \return The current state of the device or XenbusStateClosed if no
102 * state can be read.
103 */
104XenbusState xenbus_read_driver_state(const char *path);
105
106/**
107 * Return the state of the "other end" (peer) of a XenBus device.
108 *
109 * \param dev The XenBus device whose peer to query.
110 *
111 * \return The current state of the peer device or XenbusStateClosed if no
112 * state can be read.
113 */
114static inline XenbusState
115xenbus_get_otherend_state(device_t dev)
116{
117 return (xenbus_read_driver_state(xenbus_get_otherend_path(dev)));
118}
119
120/**
107 * Initialize and register a watch on the given path (client suplied storage).
108 *
109 * \param dev The XenBus device requesting the watch service.
110 * \param path The XenStore path of the object to be watched. The
111 * storage for this string must be stable for the lifetime
112 * of the watch.
113 * \param watch The watch object to use for this request. This object
114 * must be stable for the lifetime of the watch.

--- 180 unchanged lines hidden ---
121 * Initialize and register a watch on the given path (client suplied storage).
122 *
123 * \param dev The XenBus device requesting the watch service.
124 * \param path The XenStore path of the object to be watched. The
125 * storage for this string must be stable for the lifetime
126 * of the watch.
127 * \param watch The watch object to use for this request. This object
128 * must be stable for the lifetime of the watch.

--- 180 unchanged lines hidden ---