Skip to contentSkip to conversation

block: fix sysfs module parameters directory path in comment

PATCH Applied Akinobu Mita 2 participants 2 messages Jul 16, 2019 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: fix sysfs module parameters directory path in comment

The runtime configurable module parameter files are located under /sys/module/MODULENAME/parameters, not /sys/module/MODULENAME.

---
 block/genhd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/genhd.c +1 -1
index d8c71a4..73a4999 100644
@@ -1971,7 +1971,7 @@ static const struct attribute *disk_events_attrs[] = {
  * The default polling interval can be specified by the kernel
  * parameter block.events_dfl_poll_msecs which defaults to 0
  * (disable).  This can also be modified runtime by writing to
- * /sys/module/block/events_dfl_poll_msecs.
+ * /sys/module/block/parameters/events_dfl_poll_msecs.
  */
 static int disk_events_set_dfl_poll_msecs(const char *val,
 					  const struct kernel_param *kp)
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw
Quoted 2 lines · Akinobu Mita

The runtime configurable module parameter files are located under /sys/module/MODULENAME/parameters, not /sys/module/MODULENAME.

Applied, thanks.

Signature · 1 line
Jens Axboe