Home
last modified time | relevance | path

Searched refs:preference (Results 1 – 16 of 16) sorted by relevance

/systemd-251/src/oom/
Doomd-util.h34 ManagedOOMPreference preference; member
81 r = CMP((*c1)->preference, (*c2)->preference); in compare_pgscan_rate_and_memory_usage()
100 r = CMP((*c1)->preference, (*c2)->preference); in compare_swap_usage()
Dtest-oomd-util.c140 assert_se(ctx->preference == MANAGED_OOM_PREFERENCE_OMIT); in test_oomd_cgroup_context_acquire_and_insert()
142 assert_se(ctx->preference == MANAGED_OOM_PREFERENCE_NONE); in test_oomd_cgroup_context_acquire_and_insert()
152 assert_se(ctx->preference == MANAGED_OOM_PREFERENCE_AVOID); in test_oomd_cgroup_context_acquire_and_insert()
165 assert_se(ctx->preference == root_pref); in test_oomd_cgroup_context_acquire_and_insert()
196 assert_se(ctx->preference == MANAGED_OOM_PREFERENCE_NONE); in test_oomd_cgroup_context_acquire_and_insert()
407 .preference = MANAGED_OOM_PREFERENCE_OMIT }, in test_oomd_sort_cgroups()
412 .preference = MANAGED_OOM_PREFERENCE_AVOID }, in test_oomd_sort_cgroups()
Doomd-util.c160 …item->path && prefix && !path_startswith(item->path, prefix)) || item->preference == MANAGED_OOM_P… in oomd_sort_cgroup_contexts()
348 ctx->preference = MANAGED_OOM_PREFERENCE_NONE; in oomd_cgroup_context_acquire()
367 ctx->preference = r == 1 ? MANAGED_OOM_PREFERENCE_AVOID : ctx->preference; in oomd_cgroup_context_acquire()
372 ctx->preference = r == 1 ? MANAGED_OOM_PREFERENCE_OMIT : ctx->preference; in oomd_cgroup_context_acquire()
/systemd-251/src/libsystemd-network/
Dtest-ndisc-rs.c37 unsigned preference; in router_dump() local
61 assert_se(sd_ndisc_router_get_preference(rt, &preference) >= 0); in router_dump()
63 preference == SD_NDISC_PREFERENCE_LOW ? "low" : in router_dump()
64 preference == SD_NDISC_PREFERENCE_HIGH ? "high" : "medium"); in router_dump()
Ddhcp6-lease-internal.h23 uint8_t preference; member
53 int dhcp6_lease_set_preference(sd_dhcp6_lease *lease, uint8_t preference);
Dndisc-router.c99 rt->preference = (rt->flags >> 3) & 3; in ndisc_router_parse()
100 if (!IN_SET(rt->preference, SD_NDISC_PREFERENCE_LOW, SD_NDISC_PREFERENCE_HIGH)) in ndisc_router_parse()
101 rt->preference = SD_NDISC_PREFERENCE_MEDIUM; in ndisc_router_parse()
244 *ret = rt->preference; in sd_ndisc_router_get_preference()
Dsd-dhcp6-lease.c189 int dhcp6_lease_set_preference(sd_dhcp6_lease *lease, uint8_t preference) { in dhcp6_lease_set_preference() argument
192 lease->preference = preference; in dhcp6_lease_set_preference()
200 *ret = lease->preference; in dhcp6_lease_get_preference()
Dndisc-router.h25 unsigned preference; member
Dsd-ndisc.c194 …rt->preference == SD_NDISC_PREFERENCE_HIGH ? "high" : rt->preference == SD_NDISC_PREFERENCE_LOW ? … in ndisc_handle_datagram()
Dsd-radv.c560 int sd_radv_set_preference(sd_radv *ra, unsigned preference) { in sd_radv_set_preference() argument
562 assert_return(IN_SET(preference, in sd_radv_set_preference()
569 if (ra->lifetime_usec == 0 && preference != SD_NDISC_PREFERENCE_MEDIUM) in sd_radv_set_preference()
572 ra->flags = (ra->flags & ~(0x3 << 3)) | (preference << 3); in sd_radv_set_preference()
Dtest-dhcp6-client.c899 uint8_t preference; in test_client_callback() local
908 assert_se(dhcp6_lease_get_preference(lease, &preference) >= 0); in test_client_callback()
909 assert_se(preference == 0xff); in test_client_callback()
/systemd-251/src/network/
Dnetworkd-ndisc.c300 unsigned preference; in ndisc_router_process_default() local
340 r = sd_ndisc_router_get_preference(rt, &preference); in ndisc_router_process_default()
358 route->pref = preference; in ndisc_router_process_default()
385 route->pref = preference; in ndisc_router_process_default()
593 unsigned preference, prefixlen; in ndisc_router_process_route() local
651 r = sd_ndisc_router_route_get_preference(rt, &preference); in ndisc_router_process_route()
664 route->pref = preference; in ndisc_router_process_route()
/systemd-251/src/version/
Dversion.h.in4 * Use this in preference to PROJECT_VERSION, with the following exceptions:
/systemd-251/src/systemd/
Dsd-radv.h59 int sd_radv_set_preference(sd_radv *ra, unsigned preference);
/systemd-251/
Dmeson.build1581 # be used, and use it in preference.
DNEWS3757 distribution-specific defaults in .mkosi/ based on your preference.