diff options
author | Evgeniy Polyakov <johnpol@2ka.mipt.ru> | 2007-12-10 23:03:43 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-24 20:40:05 -0800 |
commit | 41ca28ab2abd76dc203e2c3a7cd609607cb927c3 (patch) | |
tree | 9197e7582b4654796914090026e1afed2628d101 /include/linux/kref.h | |
parent | 775b64d2b6ca37697de925f70799c710aab5849a (diff) |
kref: add kref_set()
This adds kref_set() to the kref api for future use by people who really
know what they are doing with krefs...
From: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/kref.h')
-rw-r--r-- | include/linux/kref.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kref.h b/include/linux/kref.h index 6fee3539893f..5d185635786e 100644 --- a/include/linux/kref.h +++ b/include/linux/kref.h @@ -24,6 +24,7 @@ struct kref { atomic_t refcount; }; +void kref_set(struct kref *kref, int num); void kref_init(struct kref *kref); void kref_get(struct kref *kref); int kref_put(struct kref *kref, void (*release) (struct kref *kref)); |