Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Apr 2006 19:04:44 GMT
From:      tkuik <tkuik@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 96231 for review
Message-ID:  <200604271904.k3RJ4ief025513@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=96231

Change 96231 by tkuik@tkuik_freebsd on 2006/04/27 19:03:57

	added xenbus_free_evtchn()

Affected files ...

.. //depot/projects/xen3/src/sys/dev/xen/xenbus/xenbus_client.c#4 edit

Differences ...

==== //depot/projects/xen3/src/sys/dev/xen/xenbus/xenbus_client.c#4 (text+ko) ====

@@ -242,6 +242,20 @@
 EXPORT_SYMBOL(xenbus_alloc_evtchn);
 
 
+int xenbus_free_evtchn(struct xenbus_device *dev, int port)
+{
+	evtchn_op_t op = {
+		.cmd = EVTCHNOP_close,
+		.u.close.port = port,
+	};
+	int err = HYPERVISOR_event_channel_op(&op);
+	if (err)
+		xenbus_dev_error(dev, err, "freeing event channel %d", port);
+	return err;
+}
+EXPORT_SYMBOL(xenbus_free_evtchn);
+
+
 XenbusState xenbus_read_driver_state(const char *path)
 {
 	XenbusState result;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604271904.k3RJ4ief025513>