/* If the kobject was not able to be created, NULL will be returned. The kobject structure returned from here must be cleaned up with a call to kobject_put() and not kfree(), as kobject_init() has already been called on this structure.  */
struct kobject* kobject_create(void)
/* If the kobject was not able to be created, NULL will be returned. The kobject structure returned from here must be cleaned up with a call to kobject_put() and not kfree(), as kobject_init() has already been called on this structure.  */
struct kobject* kobject_create(void)
{
	struct kobject *kobj;
	kobj = kzalloc(sizeof(*kobj), GFP_KERNEL);
	if (!kobj)
		return NULL;
	kobject_init(kobj, &dynamic_kobj_ktype);
	return kobj;
}