Skip to contentSkip to conversation

samples/kobject: fix path comment

PATCH In review Meng-Shao.Liu 2 participants 2 messages Jul 15, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 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.

---
 samples/kobject/kobject-example.c | 2 +-
 samples/kobject/kset-example.c    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
samples/kobject/kobject-example.c +1 -1
index c9c3db197..e6d7fc18e 100644
@@ -13,7 +13,7 @@
 
 /*
  * This module shows how to create a simple subdirectory in sysfs called
- * /sys/kernel/kobject-example  In that directory, 3 files are created:
+ * /sys/kernel/kobject_example  In that directory, 3 files are created:
  * "foo", "baz", and "bar".  If an integer is written to these files, it can be
  * later read out of it.
  */
samples/kobject/kset-example.c +2 -2
index 552d7e363..579ce1502 100644
@@ -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.
Signature · 1 line
2.43.0
#1 lore raw
Quoted 8 lines · Meng-Shao.Liu

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.

Please use your name correctly, I doubt it has a '.' in it :)

Quoted 4 lines
---
 samples/kobject/kobject-example.c | 2 +-
 samples/kobject/kset-example.c    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

Your patch series was not threaded, what happened? When you resend, try to use something like git send-email to have that work properly.

thanks,

greg k-h