Doubt on show() function of sysfs attribute
valdis.kletnieks at vt.edu
Tue Jan 26 22:51:52 EST 2021
On Tue, 26 Jan 2021 23:07:24 +0530, Mohana Datta Yelugoti said:
> Hello everyone,
> I am going through Documentation/filesystems/sysfs.rst.
> It says that sysfs allocates a buffer of size PAGE_SIZE and
> passes it to the show/store functions of the attribute. On
> read(), the show() method should fill the entire buffer.
'git blame' indicates that except for a commit that converted
it to RST format, that file is essentially the same as it was when
Linus originally imported the kernel tree into git.
So it's describing the situation as it was in 2005, and probably
way out of date.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 832 bytes
Desc: not available
More information about the Kernelnewbies