|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: [Xen-staging] [xen-unstable] linux: User-space grant tab
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
|
|
|
|
|