Doubt on show() function of sysfs attribute

Valdis Kl=?utf-8?Q?=c4=93?=tnieks 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[0].

'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
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20210126/4d2aba07/attachment.sig>


More information about the Kernelnewbies mailing list