4 * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
22 * @desc Implement memory API stubs
24 * Copyright (c) 2013 Samsung Electronics Co., Ltd. All rights reserved.
28 #include "lowmem-process.h"
30 #include "proc-main.h"
31 #include "resourced.h"
35 int get_proc_oom_score_adj(UNUSED int pid, UNUSED int *oom_score_adj)
37 return RESOURCED_ERROR_NONE;
40 int set_proc_oom_score_adj(UNUSED int pid, UNUSED int oom_score_adj)
42 return RESOURCED_ERROR_NONE;
45 int lowmem_set_active(UNUSED int pid, UNUSED int oom_score_adj)
47 return RESOURCED_ERROR_NONE;
50 int lowmem_set_inactive(UNUSED int pid, UNUSED int oom_score_adj)
52 return RESOURCED_ERROR_NONE;
55 int lowmem_set_foregrd(UNUSED int pid, UNUSED int oom_score_adj)
57 return RESOURCED_ERROR_NONE;
60 int lowmem_set_backgrd(UNUSED int pid, UNUSED int oom_score_adj)
62 return RESOURCED_ERROR_NONE;
65 int lowmem_sweep_memory(UNUSED int callpid)
67 return RESOURCED_ERROR_NONE;
70 int lowmem_get_proc_cmdline(UNUSED pid_t pid, char *cmdline)
72 strncpy(cmdline, "", PROC_NAME_MAX-1);
73 return RESOURCED_ERROR_NONE;