Searched refs:OomdSystemContext (Results 1 – 4 of 4) sorted by relevance
/systemd-251/src/oom/ |
D | oomd-util.h | 16 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);
|
D | test-oomd-util.c | 254 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()
|
D | oomd-util.c | 125 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()
|
D | oomd-manager.h | 49 OomdSystemContext system_context;
|