summaryrefslogtreecommitdiff
path: root/samples/kobject/kset-example.c
diff options
context:
space:
mode:
authorMeng Shao Liu <sau525@gmail.com>2025-07-16 14:46:28 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-07-16 13:32:53 +0200
commit42573e4df8e2318fce6a711e0f9cafc9e3dc1483 (patch)
tree754793d0469a01a9e953dbe11f78e8750337b209 /samples/kobject/kset-example.c
parent47e6715bb7ea388a9a3a13d31918827ba3aa3f4a (diff)
samples/kobject: fix path comment
The introductory comment still says the example creates /sys/kernel/kobject-example, but the code actually creates /sys/kernel/kobject_example. Update both comments to reflect the actual sysfs paths. Also, fix "tree"->"three" typo in kset-example.c. Signed-off-by: Meng Shao Liu <sau525@gmail.com> Link: https://lore.kernel.org/r/5be61d284a1850f573658f1c105f0b6062e41332.1752646650.git.sau525@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples/kobject/kset-example.c')
-rw-r--r--samples/kobject/kset-example.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/kobject/kset-example.c b/samples/kobject/kset-example.c
index 552d7e363539..579ce150217c 100644
--- a/samples/kobject/kset-example.c
+++ b/samples/kobject/kset-example.c
@@ -14,8 +14,8 @@
/*
* This module shows how to create a kset in sysfs called
- * /sys/kernel/kset-example
- * Then tree kobjects are created and assigned to this kset, "foo", "baz",
+ * /sys/kernel/kset_example
+ * Then three kobjects are created and assigned to this kset, "foo", "baz",
* and "bar". In those kobjects, attributes of the same name are also
* created and if an integer is written to these files, it can be later
* read out of it.