Blame view

drivers/base/hypervisor.c 544 Bytes
4039483fd   Michael Holzheu   [PATCH] Driver Co...
1
2
3
  /*
   * hypervisor.c - /sys/hypervisor subsystem.
   *
f19bfb2c9   Michael Holzheu   [S390] hypfs comm...
4
   * Copyright (C) IBM Corp. 2006
2d72fc00a   Greg Kroah-Hartman   kobject: convert ...
5
6
   * Copyright (C) 2007 Greg Kroah-Hartman <gregkh@suse.de>
   * Copyright (C) 2007 Novell Inc.
4039483fd   Michael Holzheu   [PATCH] Driver Co...
7
   *
f19bfb2c9   Michael Holzheu   [S390] hypfs comm...
8
   * This file is released under the GPLv2
4039483fd   Michael Holzheu   [PATCH] Driver Co...
9
10
11
12
   */
  
  #include <linux/kobject.h>
  #include <linux/device.h>
1b6bc32f0   Paul Gortmaker   drivers/base: Add...
13
  #include <linux/export.h>
4039483fd   Michael Holzheu   [PATCH] Driver Co...
14
  #include "base.h"
2d72fc00a   Greg Kroah-Hartman   kobject: convert ...
15
16
  struct kobject *hypervisor_kobj;
  EXPORT_SYMBOL_GPL(hypervisor_kobj);
4039483fd   Michael Holzheu   [PATCH] Driver Co...
17
18
19
  
  int __init hypervisor_init(void)
  {
2d72fc00a   Greg Kroah-Hartman   kobject: convert ...
20
21
22
23
  	hypervisor_kobj = kobject_create_and_add("hypervisor", NULL);
  	if (!hypervisor_kobj)
  		return -ENOMEM;
  	return 0;
4039483fd   Michael Holzheu   [PATCH] Driver Co...
24
  }