2006-05-09 10:53:49 +00:00
|
|
|
/*
|
|
|
|
* hypervisor.c - /sys/hypervisor subsystem.
|
|
|
|
*
|
2006-09-20 13:58:44 +00:00
|
|
|
* Copyright (C) IBM Corp. 2006
|
2007-11-01 15:29:06 +00:00
|
|
|
* Copyright (C) 2007 Greg Kroah-Hartman <gregkh@suse.de>
|
|
|
|
* Copyright (C) 2007 Novell Inc.
|
2006-05-09 10:53:49 +00:00
|
|
|
*
|
2006-09-20 13:58:44 +00:00
|
|
|
* This file is released under the GPLv2
|
2006-05-09 10:53:49 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/kobject.h>
|
|
|
|
#include <linux/device.h>
|
2011-05-27 11:12:15 +00:00
|
|
|
#include <linux/export.h>
|
2006-05-09 10:53:49 +00:00
|
|
|
#include "base.h"
|
|
|
|
|
2007-11-01 15:29:06 +00:00
|
|
|
struct kobject *hypervisor_kobj;
|
|
|
|
EXPORT_SYMBOL_GPL(hypervisor_kobj);
|
2006-05-09 10:53:49 +00:00
|
|
|
|
|
|
|
int __init hypervisor_init(void)
|
|
|
|
{
|
2007-11-01 15:29:06 +00:00
|
|
|
hypervisor_kobj = kobject_create_and_add("hypervisor", NULL);
|
|
|
|
if (!hypervisor_kobj)
|
|
|
|
return -ENOMEM;
|
|
|
|
return 0;
|
2006-05-09 10:53:49 +00:00
|
|
|
}
|