Displaying 1 result from an estimated 1 matches for "gnttab_dev_nam".
Did you mean:
gnttab_dev_name
2007 Mar 19
0
[PATCH 2/3] [RFC] User-space grant table device - changes to libxc
...17:46:06 2007 +0000
@@ -13,6 +13,7 @@
#include <xen/memory.h>
#include <xen/sys/evtchn.h>
+#include <xen/sys/gntdev.h>
#include <unistd.h>
#include <fcntl.h>
@@ -361,6 +362,143 @@ void discard_file_cache(int fd, int flus
out:
errno = saved_errno;
+}
+
+#define GNTTAB_DEV_NAME "/dev/xen/gntdev"
+
+int xc_gnttab_open(void)
+{
+ struct stat st;
+ int fd;
+ int devnum;
+
+ devnum = xc_find_device_number("gntdev");
+
+ /* Make sure any existing device file links to correct device. */
+ if ( (lstat(GNTTAB_DEV_NAME, &st) != 0) || !S_I...