summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/rtems/cache.h
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2024-01-24 11:13:34 -0600
committerJoel Sherrill <joel@rtems.org>2024-01-26 08:19:15 -0600
commit4c948a6ae52ff4c897aca231ccea8df65a6d959d (patch)
tree237b81751ccd92f8fa73f8a94eb3763598285b0e /cpukit/include/rtems/rtems/cache.h
parentcpukit/dosfs: Simplify expressions where possible (diff)
downloadrtems-4c948a6ae52ff4c897aca231ccea8df65a6d959d.tar.bz2
cpukit/cache: Report coherent add area failures
This alters the API for rtems_cache_coherent_add_area to allow reporting of failures that can occur during the process of adding a new area to the coherent cache heap.
Diffstat (limited to '')
-rw-r--r--cpukit/include/rtems/rtems/cache.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/include/rtems/rtems/cache.h b/cpukit/include/rtems/rtems/cache.h
index 20c630a3eb..d59a3fddca 100644
--- a/cpukit/include/rtems/rtems/cache.h
+++ b/cpukit/include/rtems/rtems/cache.h
@@ -59,6 +59,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <rtems/rtems/status.h>
#ifdef __cplusplus
extern "C" {
@@ -89,6 +90,10 @@ extern "C" {
*
* @param size is the size in bytes of the cache coherent memory area to add.
*
+ * @retval ::RTEMS_SUCCESSFUL The requested operation was successful.
+ *
+ * @retval ::RTEMS_UNSATISFIED The requested operation was not successful.
+ *
* @par Constraints
* @parblock
* The following constraints apply to this directive:
@@ -102,7 +107,7 @@ extern "C" {
* cause the calling task to be preempted.
* @endparblock
*/
-void rtems_cache_coherent_add_area( void *begin, uintptr_t size );
+rtems_status_code rtems_cache_coherent_add_area( void *begin, uintptr_t size );
/* Generated from spec:/rtems/cache/if/coherent-allocate */