xref: /freebsd/sys/xen/xenstore/xenstore_internal.h (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
1ff662b5cSJustin T. Gibbs /*-
2ff662b5cSJustin T. Gibbs  * Core definitions and data structures shareable across OS platforms.
3ff662b5cSJustin T. Gibbs  *
4*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
5fe267a55SPedro F. Giffuni  *
6ff662b5cSJustin T. Gibbs  * Copyright (c) 2010 Spectra Logic Corporation
7ff662b5cSJustin T. Gibbs  * All rights reserved.
8ff662b5cSJustin T. Gibbs  *
9ff662b5cSJustin T. Gibbs  * Redistribution and use in source and binary forms, with or without
10ff662b5cSJustin T. Gibbs  * modification, are permitted provided that the following conditions
11ff662b5cSJustin T. Gibbs  * are met:
12ff662b5cSJustin T. Gibbs  * 1. Redistributions of source code must retain the above copyright
13ff662b5cSJustin T. Gibbs  *    notice, this list of conditions, and the following disclaimer,
14ff662b5cSJustin T. Gibbs  *    without modification.
15ff662b5cSJustin T. Gibbs  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
16ff662b5cSJustin T. Gibbs  *    substantially similar to the "NO WARRANTY" disclaimer below
17ff662b5cSJustin T. Gibbs  *    ("Disclaimer") and any redistribution must be conditioned upon
18ff662b5cSJustin T. Gibbs  *    including a substantially similar Disclaimer requirement for further
19ff662b5cSJustin T. Gibbs  *    binary redistribution.
20ff662b5cSJustin T. Gibbs  *
21ff662b5cSJustin T. Gibbs  * NO WARRANTY
22ff662b5cSJustin T. Gibbs  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23ff662b5cSJustin T. Gibbs  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24ff662b5cSJustin T. Gibbs  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
25ff662b5cSJustin T. Gibbs  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26ff662b5cSJustin T. Gibbs  * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27ff662b5cSJustin T. Gibbs  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28ff662b5cSJustin T. Gibbs  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29ff662b5cSJustin T. Gibbs  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
30ff662b5cSJustin T. Gibbs  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
31ff662b5cSJustin T. Gibbs  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32ff662b5cSJustin T. Gibbs  * POSSIBILITY OF SUCH DAMAGES.
33ff662b5cSJustin T. Gibbs  */
34ff662b5cSJustin T. Gibbs 
35ff662b5cSJustin T. Gibbs /* Used by the XenStore character device to borrow kernel's store connection. */
36ff662b5cSJustin T. Gibbs int xs_dev_request_and_reply(struct xsd_sockmsg *msg, void **result);
37