Home
last modified time | relevance | path

Searched refs:cg (Results 1 – 3 of 3) sorted by relevance

/systemd-251/src/shared/
Dbus-unit-procs.c28 struct CGroupInfo *parent = NULL, *cg; in add_cgroup() local
36 cg = hashmap_get(cgroups, path); in add_cgroup()
37 if (cg) { in add_cgroup()
38 *ret = cg; in add_cgroup()
56 cg = new0(struct CGroupInfo, 1); in add_cgroup()
57 if (!cg) in add_cgroup()
61 cg->cgroup_path = (char*) path; in add_cgroup()
63 cg->cgroup_path = strdup(path); in add_cgroup()
64 if (!cg->cgroup_path) { in add_cgroup()
65 free(cg); in add_cgroup()
[all …]
Duserdb.c1343 _cleanup_free_ char *cu = NULL, *cg = NULL; in membershipdb_iterator_get() local
1352 cg = strdup(iterator->found_group_name); in membershipdb_iterator_get()
1353 if (!cg) in membershipdb_iterator_get()
1361 *ret_group = TAKE_PTR(cg); in membershipdb_iterator_get()
/systemd-251/src/nspawn/
Dnspawn-bind-user.c227 _cleanup_(group_record_unrefp) GroupRecord *g = NULL, *cg = NULL; in bind_user_prepare()
274 r = convert_user(directory, u, g, current_uid, &cu, &cg); in bind_user_prepare()
305 .payload_group = TAKE_PTR(cg), in bind_user_prepare()