Lines Matching refs:slice
1414 _cleanup_free_ char *slice = NULL; in cg_path_get_owner_uid() local
1420 r = cg_path_get_slice(path, &slice); in cg_path_get_owner_uid()
1424 start = startswith(slice, "user-"); in cg_path_get_owner_uid()
1449 int cg_path_get_slice(const char *p, char **slice) { in cg_path_get_slice() argument
1453 assert(slice); in cg_path_get_slice()
1473 *slice = s; in cg_path_get_slice()
1477 return cg_path_decode_unit(e, slice); in cg_path_get_slice()
1485 int cg_pid_get_slice(pid_t pid, char **slice) { in cg_pid_get_slice() argument
1489 assert(slice); in cg_pid_get_slice()
1495 return cg_path_get_slice(cgroup, slice); in cg_pid_get_slice()
1498 int cg_path_get_user_slice(const char *p, char **slice) { in cg_path_get_user_slice() argument
1501 assert(slice); in cg_path_get_user_slice()
1509 return cg_path_get_slice(t, slice); in cg_path_get_user_slice()
1512 int cg_pid_get_user_slice(pid_t pid, char **slice) { in cg_pid_get_user_slice() argument
1516 assert(slice); in cg_pid_get_user_slice()
1522 return cg_path_get_user_slice(cgroup, slice); in cg_pid_get_user_slice()