1419b0af8Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later 2419b0af8Sopenharmony_ci/* 3419b0af8Sopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd. 4419b0af8Sopenharmony_ci */ 5419b0af8Sopenharmony_ci 6419b0af8Sopenharmony_ci#ifndef _JIT_PROCESS_H 7419b0af8Sopenharmony_ci#define _JIT_PROCESS_H 8419b0af8Sopenharmony_ci 9419b0af8Sopenharmony_ci#include "jit_space_list.h" 10419b0af8Sopenharmony_ci 11419b0af8Sopenharmony_cistruct result_of_find_process { 12419b0af8Sopenharmony_ci struct rb_node **node, *parent; 13419b0af8Sopenharmony_ci struct list_head *head; 14419b0af8Sopenharmony_ci}; 15419b0af8Sopenharmony_ci 16419b0af8Sopenharmony_ci 17419b0af8Sopenharmony_cistruct result_of_find_process find_process_jit_space(struct rb_root *root, int pid); 18419b0af8Sopenharmony_cistruct list_head *update_process_jit_space(struct rb_root *root, int pid, unsigned long cookie, unsigned long *err); 19419b0af8Sopenharmony_cistruct jit_process *delete_process_jit_space(struct rb_root *root, int pid); 20419b0af8Sopenharmony_ci#endif // _JIT_PROCESS_H