[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 11/11] mini-os/xenbus: Provide xenbus_free
Ian Jackson, le Fri 20 Jun 2014 20:04:50 +0100, a écrit : > Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> Acked-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx> > --- > include/mini-os/xenbus.h | 5 +++++ > xen/xenbus/xenbus.c | 2 ++ > 2 files changed, 7 insertions(+) > > diff --git a/include/mini-os/xenbus.h b/include/mini-os/xenbus.h > index 1900e55..0e45d47 100644 > --- a/include/mini-os/xenbus.h > +++ b/include/mini-os/xenbus.h > @@ -199,6 +199,11 @@ void xenbus_watch_release(struct xenbus_watch *watch); > /* idempotent */ > void xenbus_xb_write(int type, int req_id, xenbus_transaction_t trans_id, > const struct write_req *req, int nr_reqs); > > +void xenbus_free(void*); > +/* If the caller is in a scope which uses a different malloc arena, > + * it must use this rather than free() when freeing data received > + * from xenbus. */ > + > #ifdef CONFIG_XENBUS > /* Reset the XenBus system. */ > void fini_xenbus(void); > diff --git a/xen/xenbus/xenbus.c b/xen/xenbus/xenbus.c > index e5d7f36..77b9603 100644 > --- a/xen/xenbus/xenbus.c > +++ b/xen/xenbus/xenbus.c > @@ -539,6 +539,8 @@ xenbus_msg_reply(int type, > return rep; > } > > +void xenbus_free(void *p) { free(p); } > + > static char *errmsg(struct xsd_sockmsg *rep) > { > char *res; > -- > 1.7.10.4 > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@xxxxxxxxxxxxx > http://lists.xen.org/xen-devel > -- Samuel Fatal Error: Found [MS-Windows] System -> Repartitioning Disk for Linux... (By cbbrown@xxxxxx, Christopher Browne) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |