hypervisor.c 536 B

123456789101112131415161718192021222324
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * hypervisor.c - /sys/hypervisor subsystem.
  4. *
  5. * Copyright (C) IBM Corp. 2006
  6. * Copyright (C) 2007 Greg Kroah-Hartman <gregkh@suse.de>
  7. * Copyright (C) 2007 Novell Inc.
  8. */
  9. #include <linux/kobject.h>
  10. #include <linux/device.h>
  11. #include <linux/export.h>
  12. #include "base.h"
  13. struct kobject *hypervisor_kobj;
  14. EXPORT_SYMBOL_GPL(hypervisor_kobj);
  15. int __init hypervisor_init(void)
  16. {
  17. hypervisor_kobj = kobject_create_and_add("hypervisor", NULL);
  18. if (!hypervisor_kobj)
  19. return -ENOMEM;
  20. return 0;
  21. }