Re: kernfs: can read/write method grow buffer size?

From: Greg Kroah-Hartman
Date: Fri Mar 29 2019 - 02:58:14 EST


On Fri, Mar 29, 2019 at 07:51:07AM +0100, Marek Behun wrote:
> > If this is just for kernfs, and you have your own filesystem, sure, we
> > can probably do something here. But if this is for sysfs, no, you all
> > need to keep to the "one value per file" rule that we have there
> > please.
>
> Greg, the file satisfies the "one value per file" rule. That value is
> the currently selected trigger. Writing a trigger name changes this
> value. It is just that reading also prints all the supported triggers.

"all supported triggers" is not a "single value" :)