search for: hypervisor_subsys

Displaying 4 results from an estimated 4 matches for "hypervisor_subsys".

2007 Jun 20
0
[PATCH] linux-2.6.18: utilize SYS_HYPERVISOR config option
...struct attribute *attr, char *buffer) @@ -37,7 +35,7 @@ static ssize_t hyp_sysfs_store(struct ko return 0; } -struct sysfs_ops hyp_sysfs_ops = { +static struct sysfs_ops hyp_sysfs_ops = { .show = hyp_sysfs_show, .store = hyp_sysfs_store, }; @@ -52,8 +50,7 @@ static int __init hypervisor_subsys_init return -ENODEV; hypervisor_subsys.kset.kobj.ktype = &hyp_sysfs_kobj_type; - return subsystem_register(&hypervisor_subsys); + return 0; } device_initcall(hypervisor_subsys_init); -EXPORT_SYMBOL_GPL(hypervisor_subsys); Index: head-2007-05-31/include/xen/hypervisor_sysfs.h ====...
2008 Jun 12
0
[PATCH 2/2] extract vmcoreinfo from /proc/vmcore for Xen
...} +static ssize_t vmcoreinfo_show(struct hyp_sysfs_attr *attr, char *page) +{ + return sprintf(page, "%lx %zx\n", + paddr_vmcoreinfo_xen, vmcoreinfo_size_xen); +} + +HYPERVISOR_ATTR_RO(vmcoreinfo); + +static int __init xen_sysfs_vmcoreinfo_init(void) +{ + return sysfs_create_file(&hypervisor_subsys.kset.kobj, &vmcoreinfo_attr.attr); +} + +static void xen_sysfs_vmcoreinfo_destroy(void) +{ + sysfs_remove_file(&hypervisor_subsys.kset.kobj, &vmcoreinfo_attr.attr); +} + static int __init hyper_sysfs_init(void) { int ret; @@ -354,9 +373,14 @@ static int __init hyper_sysfs_init(void)...
2006 May 18
27
[PATCH] /sys/hypervisor/uuid
...<xen/hypervisor_sysfs.h> +#include <xen/xenbus.h> MODULE_LICENSE("GPL"); MODULE_AUTHOR("Mike D. Day <ncmike@us.ibm.com>"); @@ -92,6 +94,37 @@ static void xen_sysfs_version_destroy(vo static void xen_sysfs_version_destroy(void) { sysfs_remove_group(&hypervisor_subsys.kset.kobj, &version_group); +} + +/* UUID */ + +static ssize_t uuid_show(struct hyp_sysfs_attr *attr, char *buffer) +{ + char *val; + int ret; + + val = xenbus_read(XBT_NULL, "vm", "", NULL); + if (IS_ERR(val)) + ret = PTR_ERR(val); + else if (strncmp(val, "/vm/",...
2012 Feb 17
0
[PATCH] linux-2.6.18/drivers/xen/: constify all instances of "struct attribute_group"
...ibute_group xen_compilation_group = { +static const struct attribute_group xen_compilation_group = { .name = "compilation", .attrs = xen_compile_attrs, }; -int __init static xen_compilation_init(void) +static int __init xen_compilation_init(void) { return sysfs_create_group(&hypervisor_subsys.kset.kobj, &xen_compilation_group); @@ -318,7 +318,7 @@ static struct attribute *xen_properties_ NULL }; -static struct attribute_group xen_properties_group = { +static const struct attribute_group xen_properties_group = { .name = "properties", .attrs = xen_properties_...