From: Unsung Lee Date: Tue, 25 Jul 2023 10:09:00 +0000 (+0900) Subject: plugin-api: resourced: Add enum syscommon_resourced_memory_lmk_oom_level X-Git-Tag: accepted/tizen/unified/20230803.174812~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7d02ec432105640fa6c5f08fc00a903d8fc17ead;p=platform%2Fcore%2Fsystem%2Flibsyscommon.git plugin-api: resourced: Add enum syscommon_resourced_memory_lmk_oom_level Add enumeration of oom level into libsyscommon to reference it from both resourced and resourced plugin-backend Oom level will be referenced by resourced and resourced backend when LMK is triggered by low memory. Therefore, it should be located in common library (i.e., libsyscommon) Change-Id: I2dcc1c7e3768dccf5db256845614557b6d8dc60c Signed-off-by: Unsung Lee --- diff --git a/src/plugin-api/resourced/include/syscommon-plugin-resourced-memory-lmk.h b/src/plugin-api/resourced/include/syscommon-plugin-resourced-memory-lmk.h index bdcb8e8..fb070ae 100644 --- a/src/plugin-api/resourced/include/syscommon-plugin-resourced-memory-lmk.h +++ b/src/plugin-api/resourced/include/syscommon-plugin-resourced-memory-lmk.h @@ -32,6 +32,14 @@ extern "C" { #endif +enum syscommon_resourced_memory_lmk_oom_level { + OOM_LEVEL_BACKGROUND_LEAST_RECENTLY_USED, + OOM_LEVEL_BACKGROUND_MOST_RECENTLY_USED, + OOM_LEVEL_FOREGROUND, + OOM_LEVEL_FOREGROUND_AND_PROC, + OOM_LEVEL_ALL, +}; + struct task_info { /* * Mostly, there are not multiple processes with the same pgid.