aboutsummaryrefslogtreecommitdiff
path: root/include/linux/kobj_completion.h
AgeCommit message (Collapse)AuthorFilesLines
2013-09-26kobject: introduce kobj_completionJeff Mahoney1-0/+18
A common way to handle kobject lifetimes in embedded in objects with different lifetime rules is to pair the kobject with a struct completion. This introduces a kobj_completion structure that can be used in place of the pairing, along with several convenience functions for initialization, release, and put-and-wait. Signed-off-by: Jeff Mahoney <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>