hypervisor.c 580 B

1234567891011121314151617181920212223242526
  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. * This file is released under the GPLv2
  10. */
  11. #include <linux/kobject.h>
  12. #include <linux/device.h>
  13. #include <linux/export.h>
  14. #include "base.h"
  15. struct kobject *hypervisor_kobj;
  16. EXPORT_SYMBOL_GPL(hypervisor_kobj);
  17. int __init hypervisor_init(void)
  18. {
  19. hypervisor_kobj = kobject_create_and_add("hypervisor", NULL);
  20. if (!hypervisor_kobj)
  21. return -ENOMEM;
  22. return 0;
  23. }