Home
last modified time | relevance | path

Searched refs:OomdSystemContext (Results 1 – 4 of 4) sorted by relevance

/systemd-251/src/oom/
Doomd-util.h16 typedef struct OomdSystemContext OomdSystemContext; typedef
42 struct OomdSystemContext { struct
64 bool oomd_mem_available_below(const OomdSystemContext *ctx, int threshold_permyriad); argument
67 bool oomd_swap_free_below(const OomdSystemContext *ctx, int threshold_permyriad);
123 int oomd_system_context_acquire(const char *proc_swaps_path, OomdSystemContext *ret);
136 void oomd_dump_system_context(const OomdSystemContext *ctx, FILE *f, const char *prefix);
Dtest-oomd-util.c254 OomdSystemContext ctx; in test_oomd_system_context_acquire()
338 OomdSystemContext ctx = (OomdSystemContext) { in test_oomd_mem_and_swap_free_below()
347 ctx = (OomdSystemContext) { in test_oomd_mem_and_swap_free_below()
356 ctx = (OomdSystemContext) { in test_oomd_mem_and_swap_free_below()
Doomd-util.c125 bool oomd_mem_available_below(const OomdSystemContext *ctx, int threshold_permyriad) { in oomd_mem_available_below()
135 bool oomd_swap_free_below(const OomdSystemContext *ctx, int threshold_permyriad) { in oomd_swap_free_below()
417 int oomd_system_context_acquire(const char *proc_meminfo_path, OomdSystemContext *ret) { in oomd_system_context_acquire()
420 OomdSystemContext ctx = {}; in oomd_system_context_acquire()
599 void oomd_dump_system_context(const OomdSystemContext *ctx, FILE *f, const char *prefix) { in oomd_dump_system_context()
Doomd-manager.h49 OomdSystemContext system_context;