sysfs.txt: mention that store method buffers are null-terminated
authorUlf Magnusson <ulfalizer@gmail.com>
Mon, 7 Sep 2015 17:06:14 +0000 (19:06 +0200)
committerJonathan Corbet <corbet@lwn.net>
Sun, 13 Sep 2015 20:38:51 +0000 (14:38 -0600)
commit17666497fe631fef483afd38824c5dabdd764b90
tree58e663e6ca7e2df102005202574b332d0723b6e9
parent9ba41327d8d01df54be1e6f1c246b123b009fa55
sysfs.txt: mention that store method buffers are null-terminated

Without knowing this, the use of sysfs_streq() becomes puzzling.

The termination happens in kernfs_fop_write().

Signed-off-by: Ulf Magnusson <ulfalizer@gmail.com>
[jc: moved the new text to a different paragraph]
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/filesystems/sysfs.txt