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