"volatile considered harmful"
[linux-drm-fsl-dcu.git] / Documentation / kref.txt
index 96d8f5666afe6006e47dc0155962885f491ea188..f38b59d00c63a1a635983eaee2278c40b6f744a6 100644 (file)
@@ -67,7 +67,7 @@ void more_data_handling(void *cb_data)
        .
        . do stuff with data here
        .
-       kref_put(data, data_release);
+       kref_put(&data->refcount, data_release);
 }
 
 int my_data_handler(void)
@@ -208,4 +208,9 @@ preferred as it is a little neater.
 
 Corey Minyard <minyard@acm.org>
 
-A lot of this was lifted from Greg KH's OLS presentation on krefs.
+A lot of this was lifted from Greg Kroah-Hartman's 2004 OLS paper and
+presentation on krefs, which can be found at:
+  http://www.kroah.com/linux/talks/ols_2004_kref_paper/Reprint-Kroah-Hartman-OLS2004.pdf
+and:
+  http://www.kroah.com/linux/talks/ols_2004_kref_talk/
+