Greg Kroah-Hartman | 989d42e | 2017-11-07 17:30:07 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Michael Holzheu | 4039483 | 2006-05-09 12:53:49 +0200 | [diff] [blame] | 2 | /* |
| 3 | * hypervisor.c - /sys/hypervisor subsystem. |
| 4 | * |
Michael Holzheu | f19bfb2 | 2006-09-20 15:58:44 +0200 | [diff] [blame] | 5 | * Copyright (C) IBM Corp. 2006 |
Greg Kroah-Hartman | 2d72fc0 | 2007-11-01 09:29:06 -0600 | [diff] [blame] | 6 | * Copyright (C) 2007 Greg Kroah-Hartman <gregkh@suse.de> |
| 7 | * Copyright (C) 2007 Novell Inc. |
Michael Holzheu | 4039483 | 2006-05-09 12:53:49 +0200 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #include <linux/kobject.h> |
| 11 | #include <linux/device.h> |
Paul Gortmaker | 1b6bc32 | 2011-05-27 07:12:15 -0400 | [diff] [blame] | 12 | #include <linux/export.h> |
Michael Holzheu | 4039483 | 2006-05-09 12:53:49 +0200 | [diff] [blame] | 13 | #include "base.h" |
| 14 | |
Greg Kroah-Hartman | 2d72fc0 | 2007-11-01 09:29:06 -0600 | [diff] [blame] | 15 | struct kobject *hypervisor_kobj; |
| 16 | EXPORT_SYMBOL_GPL(hypervisor_kobj); |
Michael Holzheu | 4039483 | 2006-05-09 12:53:49 +0200 | [diff] [blame] | 17 | |
| 18 | int __init hypervisor_init(void) |
| 19 | { |
Greg Kroah-Hartman | 2d72fc0 | 2007-11-01 09:29:06 -0600 | [diff] [blame] | 20 | hypervisor_kobj = kobject_create_and_add("hypervisor", NULL); |
| 21 | if (!hypervisor_kobj) |
| 22 | return -ENOMEM; |
| 23 | return 0; |
Michael Holzheu | 4039483 | 2006-05-09 12:53:49 +0200 | [diff] [blame] | 24 | } |