1 /* 2 Simple prototype Xen Store Daemon providing simple tree-like database. 3 Copyright (C) 2005 Rusty Russell IBM Corporation 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 2 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program; If not, see <http://www.gnu.org/licenses/>. 17 */ 18 #include <sys/types.h> 19 #include <sys/mman.h> 20 #include "xenstored_core.h" 21 #include <xen/grant_table.h> 22 write_pidfile(const char * pidfile)23void write_pidfile(const char *pidfile) 24 { 25 } 26 daemonize(void)27void daemonize(void) 28 { 29 } 30 finish_daemonize(void)31void finish_daemonize(void) 32 { 33 } 34 init_pipe(int reopen_log_pipe[2])35void init_pipe(int reopen_log_pipe[2]) 36 { 37 reopen_log_pipe[0] = -1; 38 reopen_log_pipe[1] = -1; 39 } 40 xenbus_notify_running(void)41void xenbus_notify_running(void) 42 { 43 } 44 xenbus_evtchn(void)45evtchn_port_t xenbus_evtchn(void) 46 { 47 return dom0_event; 48 } 49 xenbus_map(void)50void *xenbus_map(void) 51 { 52 return xengnttab_map_grant_ref(*xgt_handle, xenbus_master_domid(), 53 GNTTAB_RESERVED_XENSTORE, PROT_READ|PROT_WRITE); 54 } 55 unmap_xenbus(void * interface)56void unmap_xenbus(void *interface) 57 { 58 xengnttab_unmap(*xgt_handle, interface, 1); 59 } 60 61