]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup-util: helper to cg_get_attribute and convert to uint64_t
authorAnita Zhang <the.anitazha@gmail.com>
Sun, 8 Mar 2020 01:14:35 +0000 (17:14 -0800)
committerAnita Zhang <the.anitazha@gmail.com>
Tue, 24 Mar 2020 23:05:16 +0000 (16:05 -0700)
commit613328c3e2d922283c388aafd25166e22e11a909
tree9bdbd5e42ce8584f1678eba3659f8a6ddb6b1db6
parent1b43e24602010403e8684df7539977264a478688
cgroup-util: helper to cg_get_attribute and convert to uint64_t

A common pattern in the codebase is reading a cgroup memory value
and converting it to a uint64_t. Let's make it a helper and refactor a
few places to use it so it's more concise.
src/basic/cgroup-util.c
src/basic/cgroup-util.h
src/basic/limits-util.c
src/core/cgroup.c