WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [Xen-staging] [xen-unstable] linux: User-space grant tab

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Re: [Xen-staging] [xen-unstable] linux: User-space grant table device.
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Sat, 31 Mar 2007 09:46:11 -0600
Delivery-date: Sat, 31 Mar 2007 16:48:07 +0100
Envelope-to: Keir.Fraser@xxxxxxxxxxxx
In-reply-to: <200703311252.l2VCqLaT019711@xxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: HP OSLO R&D
References: <200703311252.l2VCqLaT019711@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Sat, 2007-03-31 at 13:52 +0100, Xen staging patchbot-unstable wrote:
> --- a/linux-2.6-xen-sparse/drivers/xen/util.c Sat Mar 31 12:42:02 2007 +0100
> +++ b/linux-2.6-xen-sparse/drivers/xen/util.c Sat Mar 31 13:53:24 2007 +0100
> @@ -4,6 +4,23 @@
>  #include <linux/vmalloc.h>
>  #include <asm/uaccess.h>
>  #include <xen/driver_util.h>
> +
> +struct class *get_xen_class(void)
> +{
> +     static struct class *xen_class;
> +
> +     if (xen_class)
> +             return xen_class;
> +
> +     xen_class = class_create(THIS_MODULE, "xen");
> +     if (IS_ERR(xen_class)) {
> +             printk("Failed to create xen sysfs class.\n");
> +             xen_class = NULL;
> +     }
> +
> +     return xen_class;
> +}
> +EXPORT_SYMBOL_GPL(get_xen_class);

   Maybe this could be moved to a more common spot since only x86 builds
with CONFIG_XEN_UTIL?  Thanks,

        Alex

-- 
Alex Williamson                             HP Open Source & Linux Org.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel