Re: [PATCH v2 31/32] libluo: introduce luoctl
From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2025-07-29 16:15:03
Also in:
linux-doc, linux-fsdevel, linux-mm, lkml
From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2025-07-29 16:15:03
Also in:
linux-doc, linux-fsdevel, linux-mm, lkml
On Wed, Jul 23, 2025 at 02:46:44PM +0000, Pasha Tatashin wrote:
From: Pratyush Yadav <redacted>
luoctl is a utility to interact with the LUO state machine. It currently
supports viewing and change the current state of LUO. This can be used
by scripts, tools, or developers to control LUO state during the live
update process.
Example usage:
$ luoctl state
normal
$ luoctl prepare
$ luoctl state
prepared
$ luoctl cancel
$ luoctl state
normal
Signed-off-by: Pratyush Yadav <redacted>
Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com>
---
tools/lib/luo/Makefile | 6 +-
tools/lib/luo/cli/.gitignore | 1 +
tools/lib/luo/cli/Makefile | 18 ++++
tools/lib/luo/cli/luoctl.c | 178 +++++++++++++++++++++++++++++++++++
4 files changed, 202 insertions(+), 1 deletion(-)
create mode 100644 tools/lib/luo/cli/.gitignore
create mode 100644 tools/lib/luo/cli/Makefile
create mode 100644 tools/lib/luo/cli/luoctl.cIn the calls I thought the plan had changed to put libluo in its own repository? There is nothing tightly linked to the kernel here, I think it would be easier on everyone to not add ordinary libraries to the kernel tree. Jason