kobj_completion_del_and_wait — release the kobject and wait for it
void kobj_completion_del_and_wait ( | struct kobj_completion * kc) ; |
Delete the kobject from sysfs and drop the reference count. Then wait until any other outstanding references are also dropped. This routine is only necessary once other references may have been taken on the kobject. Typically this happens when the kobject has been published to sysfs via kobject_add.