]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
tools/cgset: add cgroup_set_cgroup_values() helper
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Sun, 8 Oct 2023 09:40:42 +0000 (15:10 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 1 Nov 2023 14:59:13 +0000 (08:59 -0600)
commit87997ed35f02f42d3d6488beeb23f1b9ee6701d0
treeb64ed44df35e56ec948550116839d6f0872c28aa
parentf28099ea23ab3e7ca8e0111a1e4b90fe2f381015
tools/cgset: add cgroup_set_cgroup_values() helper

Move the cgroup controller value setting logic to a helper function,
cgroup_set_cgroup_values() and also introduce program_name variable, to
be used instead of argv[0], when printing the info()/err() messages.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/tools/cgset.c