1214077Sgibbs/*- 2214077Sgibbs * Core definitions and data structures shareable across OS platforms. 3214077Sgibbs * 4214077Sgibbs * Copyright (c) 2010 Spectra Logic Corporation 5214077Sgibbs * All rights reserved. 6214077Sgibbs * 7214077Sgibbs * Redistribution and use in source and binary forms, with or without 8214077Sgibbs * modification, are permitted provided that the following conditions 9214077Sgibbs * are met: 10214077Sgibbs * 1. Redistributions of source code must retain the above copyright 11214077Sgibbs * notice, this list of conditions, and the following disclaimer, 12214077Sgibbs * without modification. 13214077Sgibbs * 2. Redistributions in binary form must reproduce at minimum a disclaimer 14214077Sgibbs * substantially similar to the "NO WARRANTY" disclaimer below 15214077Sgibbs * ("Disclaimer") and any redistribution must be conditioned upon 16214077Sgibbs * including a substantially similar Disclaimer requirement for further 17214077Sgibbs * binary redistribution. 18214077Sgibbs * 19214077Sgibbs * NO WARRANTY 20214077Sgibbs * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21214077Sgibbs * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22214077Sgibbs * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR 23214077Sgibbs * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24214077Sgibbs * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25214077Sgibbs * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26214077Sgibbs * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27214077Sgibbs * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 28214077Sgibbs * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 29214077Sgibbs * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30214077Sgibbs * POSSIBILITY OF SUCH DAMAGES. 31214077Sgibbs * 32214077Sgibbs * $FreeBSD$ 33214077Sgibbs */ 34214077Sgibbs 35214077Sgibbs/* Initialize support for userspace access to the XenStore. */ 36214077Sgibbsvoid xs_dev_init(void); 37214077Sgibbs 38214077Sgibbs/* Used by the XenStore character device to borrow kernel's store connection. */ 39214077Sgibbsint xs_dev_request_and_reply(struct xsd_sockmsg *msg, void **result); 40