Coredump pseudo-device driver APIs .
More...
|
typedef void(* | coredump_dump_callback_t) (uintptr_t dump_area, size_t dump_area_size) |
| Callback that occurs at dump time, data copied into dump_area will be included in the dump that is generated.
|
|
Coredump pseudo-device driver APIs .
◆ coredump_dump_callback_t
typedef void(* coredump_dump_callback_t) (uintptr_t dump_area, size_t dump_area_size) |
#include <zephyr/drivers/coredump.h>
Callback that occurs at dump time, data copied into dump_area will be included in the dump that is generated.
- Parameters
-
dump_area | Pointer to area to copy data into for inclusion in dump |
dump_area_size | Size of available memory at dump_area |
◆ coredump_device_register_callback()
#include <zephyr/drivers/coredump.h>
Register a callback to be invoked at dump time.
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
callback | Callback to be invoked at dump time |
- Returns
- true if registration succeeded
-
false if registration failed
◆ coredump_device_register_memory()
#include <zephyr/drivers/coredump.h>
Register a region of memory to be stored in core dump at the time it is generated.
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
region | Struct describing memory to be collected |
- Returns
- true if registration succeeded
-
false if registration failed
◆ coredump_device_unregister_memory()
#include <zephyr/drivers/coredump.h>
Unregister a region of memory to be stored in core dump at the time it is generated.
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
region | Struct describing memory to be collected |
- Returns
- true if unregistration succeeded
-
false if unregistration failed