Searched refs:kdrv (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/cpuidle/
H A Dsysfs.c530 struct cpuidle_driver_kobj *kdrv; cpuidle_add_driver_sysfs() local
535 kdrv = kzalloc(sizeof(*kdrv), GFP_KERNEL); cpuidle_add_driver_sysfs()
536 if (!kdrv) cpuidle_add_driver_sysfs()
539 kdrv->drv = drv; cpuidle_add_driver_sysfs()
540 init_completion(&kdrv->kobj_unregister); cpuidle_add_driver_sysfs()
542 ret = kobject_init_and_add(&kdrv->kobj, &ktype_driver_cpuidle, cpuidle_add_driver_sysfs()
545 kfree(kdrv); cpuidle_add_driver_sysfs()
549 kobject_uevent(&kdrv->kobj, KOBJ_ADD); cpuidle_add_driver_sysfs()
550 dev->kobj_driver = kdrv; cpuidle_add_driver_sysfs()
561 struct cpuidle_driver_kobj *kdrv = dev->kobj_driver; cpuidle_remove_driver_sysfs() local
562 kobject_put(&kdrv->kobj); cpuidle_remove_driver_sysfs()
563 wait_for_completion(&kdrv->kobj_unregister); cpuidle_remove_driver_sysfs()
564 kfree(kdrv); cpuidle_remove_driver_sysfs()

Completed in 54 milliseconds