Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Coredump pseudo-device driver APIs

Coredump pseudo-device driver APIs. More...

Data Structures

struct  coredump_mem_region_node
 Structure describing a region in memory that may be stored in core dump at the time it is generated. More...
 

Typedefs

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.
 

Functions

static bool coredump_device_register_memory (const struct device *dev, struct coredump_mem_region_node *region)
 Register a region of memory to be stored in core dump at the time it is generated.
 
static bool coredump_device_unregister_memory (const struct device *dev, struct coredump_mem_region_node *region)
 Unregister a region of memory to be stored in core dump at the time it is generated.
 
static bool coredump_device_register_callback (const struct device *dev, coredump_dump_callback_t callback)
 Register a callback to be invoked at dump time.
 

Detailed Description

Coredump pseudo-device driver APIs.

Typedef Documentation

◆ coredump_dump_callback_t

typedef void(* coredump_dump_callback_t) (uintptr_t dump_area, size_t dump_area_size)

#include <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_areaPointer to area to copy data into for inclusion in dump
dump_area_sizeSize of available memory at dump_area

Function Documentation

◆ coredump_device_register_callback()

static bool coredump_device_register_callback ( const struct device dev,
coredump_dump_callback_t  callback 
)
inlinestatic

#include <include/zephyr/drivers/coredump.h>

Register a callback to be invoked at dump time.

Parameters
devPointer to the device structure for the driver instance.
callbackCallback to be invoked at dump time
Returns
true if registration succeeded
false if registration failed

◆ coredump_device_register_memory()

static bool coredump_device_register_memory ( const struct device dev,
struct coredump_mem_region_node region 
)
inlinestatic

#include <include/zephyr/drivers/coredump.h>

Register a region of memory to be stored in core dump at the time it is generated.

Parameters
devPointer to the device structure for the driver instance.
regionStruct describing memory to be collected
Returns
true if registration succeeded
false if registration failed

◆ coredump_device_unregister_memory()

static bool coredump_device_unregister_memory ( const struct device dev,
struct coredump_mem_region_node region 
)
inlinestatic

#include <include/zephyr/drivers/coredump.h>

Unregister a region of memory to be stored in core dump at the time it is generated.

Parameters
devPointer to the device structure for the driver instance.
regionStruct describing memory to be collected
Returns
true if unregistration succeeded
false if unregistration failed