Home
last modified time | relevance | path

Searched refs:rp (Results 1 – 5 of 5) sorted by relevance

/systemd-251/src/test/
Dtest-psi-util.c15 ResourcePressure rp; in TEST() local
22 … assert_se(read_resource_pressure("/verylikelynonexistentpath", PRESSURE_TYPE_SOME, &rp) < 0); in TEST()
23 assert_se(read_resource_pressure(path, PRESSURE_TYPE_SOME, &rp) < 0); in TEST()
26 assert_se(read_resource_pressure(path, PRESSURE_TYPE_SOME, &rp) < 0); in TEST()
31 assert_se(read_resource_pressure(path, PRESSURE_TYPE_SOME, &rp) < 0); in TEST()
36 assert_se(read_resource_pressure(path, PRESSURE_TYPE_SOME, &rp) < 0); in TEST()
40 assert_se(read_resource_pressure(path, PRESSURE_TYPE_SOME, &rp) == 0); in TEST()
41 assert_se(LOADAVG_INT_SIDE(rp.avg10) == 0); in TEST()
42 assert_se(LOADAVG_DECIMAL_SIDE(rp.avg10) == 22); in TEST()
43 assert_se(LOADAVG_INT_SIDE(rp.avg60) == 0); in TEST()
[all …]
/systemd-251/src/shared/
Dpsi-util.c21 ResourcePressure rp = {}; in read_resource_pressure() local
72 r = parse_loadavg_fixed_point(v, &rp.avg10); in read_resource_pressure()
78 r = parse_loadavg_fixed_point(v, &rp.avg60); in read_resource_pressure()
84 r = parse_loadavg_fixed_point(v, &rp.avg300); in read_resource_pressure()
90 r = safe_atou64(v, &rp.total); in read_resource_pressure()
104 *ret = rp; in read_resource_pressure()
Dinstall.c485 const char *rp; in create_symlink() local
491 rp = skip_root(lp->root_dir, old_path); in create_symlink()
492 if (rp) in create_symlink()
493 old_path = rp; in create_symlink()
699 const char *rp = skip_root(lp->root_dir, p); in remove_marked_symlinks_fd() local
700 q = mark_symlink_for_removal(&remove_symlinks_to, rp ?: p); in remove_marked_symlinks_fd()
2324 const char *rp; in unit_file_unmask() local
2342 rp = skip_root(lp.root_dir, path); in unit_file_unmask()
2343 q = mark_symlink_for_removal(&remove_symlinks_to, rp ?: path); in unit_file_unmask()
2567 const char *rp; in unit_file_revert() local
[all …]
/systemd-251/src/cryptsetup/
Dcryptsetup-fido2.c136 _cleanup_free_ char *rp = NULL; in find_fido2_auto_data() local
205 assert(!rp); in find_fido2_auto_data()
206 rp = strdup(json_variant_string(w)); in find_fido2_auto_data()
207 if (!rp) in find_fido2_auto_data()
254 *ret_rp_id = TAKE_PTR(rp); in find_fido2_auto_data()
/systemd-251/src/cryptsetup/cryptsetup-tokens/
Dluks2-fido2.c84 _cleanup_free_ char *rp = NULL; in parse_luks2_fido2_data() local
121 rp = strdup(json_variant_string(w)); in parse_luks2_fido2_data()
122 if (!rp) { in parse_luks2_fido2_data()
149 *ret_rp_id = TAKE_PTR(rp); in parse_luks2_fido2_data()