Home
last modified time | relevance | path

Searched refs:compare_func (Results 1 – 9 of 9) sorted by relevance

/systemd-251/src/basic/
Dhash-funcs.h18 #define _DEFINE_HASH_OPS(uq, name, type, hash_func, compare_func, free_key_func, free_value_func, s… argument
20 …ed_ static int (* UNIQ_T(static_compare_wrapper, uq))(const type *, const type *) = compare_func; \
23 .compare = (compare_func_t) compare_func, \
35 #define _DEFINE_HASH_OPS_WITH_KEY_DESTRUCTOR(uq, name, type, hash_func, compare_func, free_func, sc… argument
37 _DEFINE_HASH_OPS(uq, name, type, hash_func, compare_func, \
40 #define _DEFINE_HASH_OPS_WITH_VALUE_DESTRUCTOR(uq, name, type, hash_func, compare_func, type_value,… argument
42 _DEFINE_HASH_OPS(uq, name, type, hash_func, compare_func, \
45 #define _DEFINE_HASH_OPS_FULL(uq, name, type, hash_func, compare_func, free_key_func, type_value, f… argument
48 _DEFINE_HASH_OPS(uq, name, type, hash_func, compare_func, \
52 #define DEFINE_HASH_OPS(name, type, hash_func, compare_func) \ argument
[all …]
Dprioq.c26 compare_func_t compare_func; member
32 Prioq *prioq_new(compare_func_t compare_func) { in prioq_new() argument
40 .compare_func = compare_func, in prioq_new()
54 int prioq_ensure_allocated(Prioq **q, compare_func_t compare_func) { in prioq_ensure_allocated() argument
60 *q = prioq_new(compare_func); in prioq_ensure_allocated()
94 if (q->compare_func(q->items[k].data, q->items[idx].data) <= 0) in shuffle_up()
116 if (q->compare_func(q->items[j].data, q->items[idx].data) < 0) in shuffle_down()
125 q->compare_func(q->items[k].data, q->items[s].data) < 0) in shuffle_down()
176 int prioq_ensure_put(Prioq **q, compare_func_t compare_func, void *data, unsigned *idx) { in prioq_ensure_put() argument
179 r = prioq_ensure_allocated(q, compare_func); in prioq_ensure_put()
Dprioq.h16 int prioq_ensure_allocated(Prioq **q, compare_func_t compare_func);
19 int prioq_ensure_put(Prioq **q, compare_func_t compare_func, void *data, unsigned *idx);
/systemd-251/src/network/
Dnetworkd-queue.c58 siphash24_compress(&req->compare_func, sizeof(req->compare_func), state); in request_hash_func()
88 r = CMP(PTR_TO_UINT64(a->compare_func), PTR_TO_UINT64(b->compare_func)); in request_compare_func()
92 if (a->compare_func) in request_compare_func()
93 return a->compare_func(a->userdata, b->userdata); in request_compare_func()
112 compare_func_t compare_func, in request_new() argument
139 .compare_func = compare_func, in request_new()
186 compare_func_t compare_func, in link_queue_request_full() argument
195 userdata, free_func, hash_func, compare_func, in link_queue_request_full()
Dnetworkd-queue.h70 compare_func_t compare_func; member
102 compare_func_t compare_func,
118 #define link_queue_request_safe(link, type, userdata, free_func, hash_func, compare_func, process, … argument
122 int (*_c)(const typeof(*userdata)*, const typeof(*userdata)*) = (compare_func); \
Dnetworkd-address.c1291 .compare_func = (compare_func_t) address_compare_func, in address_cancel_request()
Dnetworkd-route.c1556 .compare_func = (compare_func_t) route_compare_func, in route_cancel_request()
/systemd-251/src/oom/
Doomd-util.c145 int oomd_sort_cgroup_contexts(Hashmap *h, oomd_compare_t compare_func, const char *prefix, OomdCGro… in oomd_sort_cgroup_contexts() argument
151 assert(compare_func); in oomd_sort_cgroup_contexts()
166 typesafe_qsort(sorted, k, compare_func); in oomd_sort_cgroup_contexts()
Doomd-util.h110 int oomd_sort_cgroup_contexts(Hashmap *h, oomd_compare_t compare_func, const char *prefix, OomdCGro…