diff options
author | Kan Liang <Kan.liang@intel.com> | 2017-05-26 15:05:37 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-06-21 10:35:27 -0400 |
commit | 3b00ea938653d136c8e4bcbe9722d954e128ce2e (patch) | |
tree | 6af90bcd4ad08b97c26579890f57b11ac332a3e2 /init | |
parent | fd25bf8b8c577aef8c0156eddaf63f3e862c659c (diff) |
tools lib api fs: Add sysfs__write_int function
Add sysfs__write_int() to ease up writing int to sysfs. New interface
is:
int sysfs__write_int(const char *entry, int value);
Also, introducing filename__write_int() which is useful for new helpers
to write sysctl values.
Signed-off-by: Kan Liang <Kan.liang@intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Robert Elliott <elliott@hpe.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1495825538-5230-2-git-send-email-kan.liang@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions