2 * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef TASK_MANAGER_SERVER_INCLUDE_TSKM_PORT_PF_H_
18 #define TASK_MANAGER_SERVER_INCLUDE_TSKM_PORT_PF_H_
20 #include <native_service/cl_process.h>
22 #include "system_service/tskm_svc.h"
23 #include "system_service/tskm_local_type.h"
24 #include "tskm_main.h"
26 int tskm_pf_sysInit();
27 int tskm_pf_procInit();
28 pid_t tskm_pf_createProc(TSKM_SVC_ATTR_t* p_svcAttr);
29 int tskm_pf_cleanupProc(int sigFd, pid_t* p_pid, TSKM_ERR_t* p_err);
30 int tskm_pf_terminateProcGroup(uint16_t pid);
31 int tskm_pf_shmCreate(const char* name, int32_t size, void** p_addr);
32 int tskm_pf_shmDelete(const char* name);
33 int tskm_pf_createThread(void* (*threadFunc)(void*), void* prm,
34 uint32_t priority, const char* threadName,
36 int tskm_pf_sendStopCompResp();
38 int tskm_pf_exit(int status);
39 int tskm_pf_touch(char* path);
40 int tskm_pf_mkTouchFileName(pid_t pid, char name[32]);
41 int tskm_pf_nvFileInit(HANDLE hApp);
42 int tskm_pf_nvFileRead(HANDLE hApp, TSKM_NV_INFO_t* p_nvInfo);
43 int tskm_pf_nvFileWrite(const TSKM_NV_INFO_t* p_nvInfo);
45 #endif // TASK_MANAGER_SERVER_INCLUDE_TSKM_PORT_PF_H_