2022-08-03 02:17:06 -04:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* @brief Set the function to call for filling memory region when
|
|
|
|
* poisoning is configured.
|
|
|
|
*
|
|
|
|
* @param pfunc The callback function to trigger for poisoning
|
|
|
|
* a memory region.
|
|
|
|
*/
|
|
|
|
void tlsf_poison_fill_pfunc_set(void *pfunc);
|
|
|
|
|
2022-08-12 05:28:16 -04:00
|
|
|
/*!
|
|
|
|
* @brief Set the function to call for checking memory region when
|
|
|
|
* poisoning is configured.
|
|
|
|
*
|
|
|
|
* @param pfunc The callback function to trigger for checking
|
|
|
|
* the content of a memory region.
|
|
|
|
*/
|
|
|
|
void tlsf_poison_check_pfunc_set(void *pfunc);
|
|
|
|
|
2022-08-03 02:17:06 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|