]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - include/linux/kobj_completion.h
1 #ifndef _KOBJ_COMPLETION_H_
2 #define _KOBJ_COMPLETION_H_
4 #include <linux/kobject.h>
5 #include <linux/completion.h>
7 struct kobj_completion
{
8 struct kobject kc_kobj
;
9 struct completion kc_unregister
;
12 #define kobj_to_kobj_completion(kobj) \
13 container_of(kobj, struct kobj_completion, kc_kobj)
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_ */