Nexus Embedded Platform
1.0.0
Statically assembled reusable embedded mechanisms
Loading...
Searching...
No Matches
stack_observation.h
Go to the documentation of this file.
1
6
#ifndef NEXUS_CORE_STACK_OBSERVATION_H
7
#define NEXUS_CORE_STACK_OBSERVATION_H
8
9
#include "
nexus/core/status.h
"
10
#include <stddef.h>
11
#include <stdint.h>
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
18
typedef
struct
{
19
size_t
capacity_bytes
;
20
size_t
untouched_bytes
;
21
size_t
touched_bytes
;
22
}
nx_stack_observation_t
;
23
40
nx_result_t
nx_stack_observe
(
const
void
* base,
size_t
bytes, uint8_t paint,
41
nx_stack_observation_t
* out);
42
43
#ifdef __cplusplus
44
}
45
#endif
46
#endif
/* NEXUS_CORE_STACK_OBSERVATION_H */
nx_stack_observe
nx_result_t nx_stack_observe(const void *base, size_t bytes, uint8_t paint, nx_stack_observation_t *out)
Read a bounded low-address paint prefix without mutation.
status.h
Small vendor-independent result vocabulary.
nx_result_t
nx_result_t
Operation result; success at submission means admission only.
Definition
status.h:21
nx_stack_observation_t
Byte-prefix paint observations, not an exact physical stack peak.
Definition
stack_observation.h:18
nx_stack_observation_t::capacity_bytes
size_t capacity_bytes
Definition
stack_observation.h:19
nx_stack_observation_t::touched_bytes
size_t touched_bytes
Definition
stack_observation.h:21
nx_stack_observation_t::untouched_bytes
size_t untouched_bytes
Definition
stack_observation.h:20
core
include
nexus
core
stack_observation.h
Generated by
1.14.0