aboutsummaryrefslogtreecommitdiff
path: root/include/apos/conf.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-11-13 17:16:28 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2022-11-13 17:16:28 +0200
commit1a0188fac0c0f265c4495b83592389b8b3645462 (patch)
treec1687724dd7f7ccf6d9d0d134c2766f14d3e39f5 /include/apos/conf.h
parente6dc962ef7758c438039d7f8ac7e2bf3ebcb5c10 (diff)
downloadkmi-1a0188fac0c0f265c4495b83592389b8b3645462.tar.gz
kmi-1a0188fac0c0f265c4495b83592389b8b3645462.zip
outline rpc stack handling
Diffstat (limited to 'include/apos/conf.h')
-rw-r--r--include/apos/conf.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/apos/conf.h b/include/apos/conf.h
index 467b1e3..33fa8e5 100644
--- a/include/apos/conf.h
+++ b/include/apos/conf.h
@@ -23,10 +23,24 @@ extern size_t __thread_stack_size;
/**
* Provides access to the runtime global parameter.
+ * Must be at most RPC_STACK_TOP - RPC_STACK_BASE.
+ *
* \see __thread_stack_size.
* \global
* \todo This should probably also be a function instead.
*/
extern size_t __call_stack_size;
+/**
+ * Provides access to the runtime global parameter. This sets the maximum size
+ * a single rpc stack instance can be.
+ *
+ * Must be at most a fourth of \ref __call_stack_size?
+ * (that way we can maybe pretty quickly check that we're running out of memory
+ * for stack stuff and can return an error about it)
+ *
+ * \global
+ */
+extern size_t __rpc_stack_size;
+
#endif /* APOS_CONF_H */