]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup-util: modernize cg_get_keyed_attribute() 37518/head
authorMike Yuan <me@yhndnzj.com>
Mon, 19 May 2025 19:06:17 +0000 (21:06 +0200)
committerMike Yuan <me@yhndnzj.com>
Mon, 19 May 2025 19:24:18 +0000 (21:24 +0200)
commitdbe592a067490a0de6ca5bdfd0e6ae4f2f7fe537
treea43e696ef9554e5e061f241d3407621a3427bb51
parent88f4bf8a8bfb4d21fa160bb69f80c53c1698becc
cgroup-util: modernize cg_get_keyed_attribute()

- assert on supplied keys being unique
- Reject duplicate attributes with -EBADMSG
- Rename 'ret_values' to just 'values', given we don't
  allocate the array
- Remove now unused cg_get_keyed_attribute_graceful()
src/basic/cgroup-util.c
src/basic/cgroup-util.h
src/test/test-cgroup-util.c