xenbusb_front.c (214077) | xenbusb_front.c (222975) |
---|---|
1/****************************************************************************** 2 * Talks to Xen Store to figure out what devices we have. 3 * 4 * Copyright (C) 2009, 2010 Spectra Logic Corporation 5 * Copyright (C) 2008 Doug Rabson 6 * Copyright (C) 2005 Rusty Russell, IBM Corporation 7 * Copyright (C) 2005 Mike Wray, Hewlett-Packard 8 * Copyright (C) 2005 XenSource Ltd --- 22 unchanged lines hidden (view full) --- 31 32/** 33 * \file xenbusb_front.c 34 * 35 * XenBus management of the NewBus bus containing the frontend instances of 36 * Xen split devices. 37 */ 38#include <sys/cdefs.h> | 1/****************************************************************************** 2 * Talks to Xen Store to figure out what devices we have. 3 * 4 * Copyright (C) 2009, 2010 Spectra Logic Corporation 5 * Copyright (C) 2008 Doug Rabson 6 * Copyright (C) 2005 Rusty Russell, IBM Corporation 7 * Copyright (C) 2005 Mike Wray, Hewlett-Packard 8 * Copyright (C) 2005 XenSource Ltd --- 22 unchanged lines hidden (view full) --- 31 32/** 33 * \file xenbusb_front.c 34 * 35 * XenBus management of the NewBus bus containing the frontend instances of 36 * Xen split devices. 37 */ 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: head/sys/xen/xenbus/xenbusb_front.c 214077 2010-10-19 20:53:30Z gibbs $"); | 39__FBSDID("$FreeBSD: head/sys/xen/xenbus/xenbusb_front.c 222975 2011-06-11 04:59:01Z gibbs $"); |
40 41#include <sys/param.h> 42#include <sys/bus.h> 43#include <sys/kernel.h> 44#include <sys/lock.h> 45#include <sys/malloc.h> 46#include <sys/module.h> 47#include <sys/sbuf.h> --- 103 unchanged lines hidden (view full) --- 151 152 error = xs_gather(XST_NIL, ivars->xd_node, 153 "backend-id", "%i", &ivars->xd_otherend_id, 154 "backend", NULL, &otherend_path, 155 NULL); 156 157 if (error == 0) { 158 ivars->xd_otherend_path = strdup(otherend_path, M_XENBUS); | 40 41#include <sys/param.h> 42#include <sys/bus.h> 43#include <sys/kernel.h> 44#include <sys/lock.h> 45#include <sys/malloc.h> 46#include <sys/module.h> 47#include <sys/sbuf.h> --- 103 unchanged lines hidden (view full) --- 151 152 error = xs_gather(XST_NIL, ivars->xd_node, 153 "backend-id", "%i", &ivars->xd_otherend_id, 154 "backend", NULL, &otherend_path, 155 NULL); 156 157 if (error == 0) { 158 ivars->xd_otherend_path = strdup(otherend_path, M_XENBUS); |
159 ivars->xd_otherend_path_len = strlen(otherend_path); |
|
159 free(otherend_path, M_XENSTORE); 160 } 161 return (error); 162} 163 164/*-------------------- Private Device Attachment Data -----------------------*/ 165static device_method_t xenbusb_front_methods[] = { 166 /* Device interface */ --- 29 unchanged lines hidden --- | 160 free(otherend_path, M_XENSTORE); 161 } 162 return (error); 163} 164 165/*-------------------- Private Device Attachment Data -----------------------*/ 166static device_method_t xenbusb_front_methods[] = { 167 /* Device interface */ --- 29 unchanged lines hidden --- |