Re: [PATCH 1/2] tools/lib/api/fs: Add procfs int read/write helpers

From: Arnaldo Carvalho de Melo
Date: Tue Feb 07 2017 - 10:34:57 EST


Em Tue, Feb 07, 2017 at 04:08:02PM +0100, Borislav Petkov escreveu:
> On Tue, Feb 07, 2017 at 12:00:45PM -0300, Arnaldo Carvalho de Melo wrote:
> > And forget that under the hood this is in something called "procfs".

> ... unless one day you want to set a file in /proc which is not under
> the sysctl hierarchy :-)

In that case you use procfs__read_int(), no problem.

> I mean, I don't care what I do - you're the maintainer - I'm just giving
> you 2 cents :-)

:-)

- Arnaldo