Jeff Mahoney | eee0316 | 2013-09-11 13:00:30 -0400 | [diff] [blame] | 1 | #ifndef _KOBJ_COMPLETION_H_ |
| 2 | #define _KOBJ_COMPLETION_H_ |
| 3 | |
| 4 | #include <linux/kobject.h> |
| 5 | #include <linux/completion.h> |
| 6 | |
| 7 | struct kobj_completion { |
| 8 | struct kobject kc_kobj; |
| 9 | struct completion kc_unregister; |
| 10 | }; |
| 11 | |
| 12 | #define kobj_to_kobj_completion(kobj) \ |
| 13 | container_of(kobj, struct kobj_completion, kc_kobj) |
| 14 | |
| 15 | void kobj_completion_init(struct kobj_completion *kc, struct kobj_type *ktype); |
| 16 | void kobj_completion_release(struct kobject *kobj); |
| 17 | void kobj_completion_del_and_wait(struct kobj_completion *kc); |
| 18 | #endif /* _KOBJ_COMPLETION_H_ */ |