TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tfm_core_mem_check.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017-2019, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef __TFM_CORE_MEM_CHECK_H__
9 #define __TFM_CORE_MEM_CHECK_H__
10 
11 #include "tfm_api.h"
12 
29 enum tfm_status_e tfm_core_has_read_access_to_region(const void *p, size_t s,
30  bool ns_caller,
31  uint32_t privileged);
32 
49 enum tfm_status_e tfm_core_has_write_access_to_region(const void *p, size_t s,
50  bool ns_caller,
51  uint32_t privileged);
52 
53 #endif /* __TFM_CORE_MEM_CHECK_H__ */
tfm_status_e
Definition: tfm_api.h:45
enum tfm_status_e tfm_core_has_write_access_to_region(const void *p, size_t s, bool ns_caller, uint32_t privileged)
Check whether the current partition has write access to a memory range.
enum tfm_status_e tfm_core_has_read_access_to_region(const void *p, size_t s, bool ns_caller, uint32_t privileged)
Check whether the current partition has read access to a memory range.