]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
wrapper.c: Add support for empty values in cgroup_add_value_string()
authorTom Hromatka <tom.hromatka@oracle.com>
Mon, 8 Feb 2021 23:05:24 +0000 (16:05 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 1 Mar 2021 17:33:00 +0000 (10:33 -0700)
commite7ac3fd8f1eaf515e70b67effd2af9b372e86e0b
tree41b567faae6cc417f3145094206b26d3d142bc5f
parentda36d96e95a34cfcfaad62ffc6ced6cf397f4555
wrapper.c: Add support for empty values in cgroup_add_value_string()

cgroup_add_value_string() is the fundamental building block
for adding a name/value pair to a cgroup_controller struct.
Add support for a NULL value field.

Currently it only supports adding a valid value, but in a
subsequent commit, cgget will utilize this function to build
up a hierarchy of cgroups, controllers, and setting names.
The values are NULL at the time the struct are populated and
will be read from sysfs at a later time.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/wrapper.c