hypervisor.c 544 B

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