• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2025 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License"),
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 /**
17  * @addtogroup TeeTrusted
18  * @{
19  *
20  * @brief TEE(Trusted Excution Environment) API.
21  * Provides security capability APIs such as trusted storage, encryption and decryption,
22  * and trusted time for trusted application development.
23  *
24  * @since 20
25  */
26 
27 /**
28  * @file tee_notify_set_priority.h
29  *
30  * @brief Provides API for setting shadow threads' priority.
31  *
32  * @library NA
33  * @kit TEEKit
34  * @syscap SystemCapability.Tee.TeeClient
35  * @since 20
36  */
37 
38 #ifndef TEE_NOTIFY_SET_PRIORITY_H
39 #define TEE_NOTIFY_SET_PRIORITY_H
40 
41 #include <stdint.h>
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
47 /**
48  * @brief Support setting the priority of the shadow thread
49  *
50  * @param priority_ree [IN] priority of the shadow thread
51  *
52  * @return <b>0</b> success
53  * @return <b>TEE_ERROR_ACCESS_DENIED</b> do NOT have access right (thread without shadow-thread flag)
54  * @return <b>TEE_ERROR_BAD_PARAMETERS</b> invalid value of priority_ree
55  * @return <b>-1</b> set priority fail
56  *
57  * @since 20
58  */
59 int spi_notify_set_shadow_priority(uint32_t priority_ree);
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif
66 /** @} */