blob: 4f8b741f461526b4c3034cf4690216a03538f2a5 [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>
Paul Gortmaker1b6bc322011-05-27 07:12:15 -040013#include <linux/export.h>
Michael Holzheu40394832006-05-09 12:53:49 +020014#include "base.h"
15
Greg Kroah-Hartman2d72fc02007-11-01 09:29:06 -060016struct kobject *hypervisor_kobj;
17EXPORT_SYMBOL_GPL(hypervisor_kobj);
Michael Holzheu40394832006-05-09 12:53:49 +020018
19int __init hypervisor_init(void)
20{
Greg Kroah-Hartman2d72fc02007-11-01 09:29:06 -060021 hypervisor_kobj = kobject_create_and_add("hypervisor", NULL);
22 if (!hypervisor_kobj)
23 return -ENOMEM;
24 return 0;
Michael Holzheu40394832006-05-09 12:53:49 +020025}