[PATCH 0/3] commands: watch: add new command
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Jul 1 00:54:31 PDT 2024
For testing proper operation of IIO devices, it can be useful to monitor
changes in the reading reported by the hwmon command. This is now
possible by using e.g. `watch -n 0.5 -t hwmon`.
Ahmad Fatoum (3):
commands: edit: factor out getwinsize and export it for reuse
lib: strtox: implement new simple_strtofract
commands: watch: add new command
commands/Kconfig | 6 +++
commands/Makefile | 1 +
commands/edit.c | 85 ++++++------------------------------
commands/watch.c | 97 ++++++++++++++++++++++++++++++++++++++++++
include/linux/kernel.h | 1 +
include/term.h | 8 ++++
lib/Makefile | 1 +
lib/strtox.c | 57 +++++++++++++++++++++++++
lib/term.c | 69 ++++++++++++++++++++++++++++++
9 files changed, 252 insertions(+), 73 deletions(-)
create mode 100644 commands/watch.c
create mode 100644 include/term.h
create mode 100644 lib/term.c
--
2.39.2
More information about the barebox
mailing list