blob: 1ce59b4b53ceacad2b252c235d175e96d574ebcc [file] [log] [blame]
Greg Kroah-Hartman989d42e2017-11-07 17:30:07 +01001// SPDX-License-Identifier: GPL-2.0
Michael Holzheu40394832006-05-09 12:53:49 +02002/*
3 * hypervisor.c - /sys/hypervisor subsystem.
4 *
Michael Holzheuf19bfb22006-09-20 15:58:44 +02005 * Copyright (C) IBM Corp. 2006
Greg Kroah-Hartman2d72fc02007-11-01 09:29:06 -06006 * Copyright (C) 2007 Greg Kroah-Hartman <gregkh@suse.de>
7 * Copyright (C) 2007 Novell Inc.
Michael Holzheu40394832006-05-09 12:53:49 +02008 */
9
10#include <linux/kobject.h>
11#include <linux/device.h>
Paul Gortmaker1b6bc322011-05-27 07:12:15 -040012#include <linux/export.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}