Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * hypervisor.c - /sys/hypervisor subsystem.
0004  *
0005  * Copyright (C) IBM Corp. 2006
0006  * Copyright (C) 2007 Greg Kroah-Hartman <gregkh@suse.de>
0007  * Copyright (C) 2007 Novell Inc.
0008  */
0009 
0010 #include <linux/kobject.h>
0011 #include <linux/device.h>
0012 #include <linux/export.h>
0013 #include "base.h"
0014 
0015 struct kobject *hypervisor_kobj;
0016 EXPORT_SYMBOL_GPL(hypervisor_kobj);
0017 
0018 int __init hypervisor_init(void)
0019 {
0020     hypervisor_kobj = kobject_create_and_add("hypervisor", NULL);
0021     if (!hypervisor_kobj)
0022         return -ENOMEM;
0023     return 0;
0024 }