blob: 6428cba3aadddf51081926671143504e5a9247e8 [file] [log] [blame]
Michael Holzheu40394832006-05-09 12:53:49 +02001/*
2 * hypervisor.c - /sys/hypervisor subsystem.
3 *
Michael Holzheuf19bfb22006-09-20 15:58:44 +02004 * Copyright (C) IBM Corp. 2006
Greg Kroah-Hartman2d72fc02007-11-01 09:29:06 -06005 * Copyright (C) 2007 Greg Kroah-Hartman <gregkh@suse.de>
6 * Copyright (C) 2007 Novell Inc.
Michael Holzheu40394832006-05-09 12:53:49 +02007 *
Michael Holzheuf19bfb22006-09-20 15:58:44 +02008 * This file is released under the GPLv2
Michael Holzheu40394832006-05-09 12:53:49 +02009 */
10
11#include <linux/kobject.h>
12#include <linux/device.h>
Michael Holzheu40394832006-05-09 12:53:49 +020013#include "base.h"
14
Greg Kroah-Hartman2d72fc02007-11-01 09:29:06 -060015struct kobject *hypervisor_kobj;
16EXPORT_SYMBOL_GPL(hypervisor_kobj);
Michael Holzheu40394832006-05-09 12:53:49 +020017
18int __init hypervisor_init(void)
19{
Greg Kroah-Hartman2d72fc02007-11-01 09:29:06 -060020 hypervisor_kobj = kobject_create_and_add("hypervisor", NULL);
21 if (!hypervisor_kobj)
22 return -ENOMEM;
23 return 0;
Michael Holzheu40394832006-05-09 12:53:49 +020024}