diff options
Diffstat (limited to 'Documentation/kobject.txt')
-rw-r--r-- | Documentation/kobject.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/kobject.txt b/Documentation/kobject.txt index c5182bb2c16c..f87241dfed87 100644 --- a/Documentation/kobject.txt +++ b/Documentation/kobject.txt | |||
@@ -342,7 +342,10 @@ kset use: | |||
342 | 342 | ||
343 | When you are finished with the kset, call: | 343 | When you are finished with the kset, call: |
344 | void kset_unregister(struct kset *kset); | 344 | void kset_unregister(struct kset *kset); |
345 | to destroy it. | 345 | to destroy it. This removes the kset from sysfs and decrements its reference |
346 | count. When the reference count goes to zero, the kset will be released. | ||
347 | Because other references to the kset may still exist, the release may happen | ||
348 | after kset_unregister() returns. | ||
346 | 349 | ||
347 | An example of using a kset can be seen in the | 350 | An example of using a kset can be seen in the |
348 | samples/kobject/kset-example.c file in the kernel tree. | 351 | samples/kobject/kset-example.c file in the kernel tree. |