]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
abstraction: Add integer conversion function
authorTom Hromatka <tom.hromatka@oracle.com>
Wed, 15 Dec 2021 20:14:11 +0000 (20:14 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 3 Feb 2022 21:42:03 +0000 (14:42 -0700)
commitee5d596e3bea376041232d53476dd43ae6dca15e
tree0029bd565dcc0246645750180060c7b932c87f6f
parentee6977051426490934cd8e691de1e5a54a96f3e0
abstraction: Add integer conversion function

Add a function to the abstraction layer that can convert from
one integer setting to another.  For example, this can be used
for simple conversions like cpu.shares to cpu.weight and vice
versa.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
src/abstraction-common.c
src/abstraction-common.h