Data structure of the resource_exhausted event.

Public Attribute Documentation#

num_buffers_discarded#

uint8_t sl_bt_evt_system_resource_exhausted_s::num_buffers_discarded

The system has temporarily run out of the pre-allocated data buffers that are allocated based on SL_BT_CONFIG_BUFFER_SIZE configuration and some expendable data or event had to be discarded to satisfy a non-expendble buffer allocation. A typical case is discarding scan reports when a large inflow of scan reports exceeds the speed at which the application drains the BGAPI event queue.


Definition at line 857 of file /mnt/raid/workspaces/ws.SZ9MaSA5u/overlay/gsdk/protocol/bluetooth/build_debug/bt_api/sw/bgapi/inc/sl_bt_api.h

num_buffer_allocation_failures#

uint8_t sl_bt_evt_system_resource_exhausted_s::num_buffer_allocation_failures

The system has run out of the pre-allocated data buffers that are allocated based on SL_BT_CONFIG_BUFFER_SIZE configuration and a buffer allocation has failed.


Definition at line 870 of file /mnt/raid/workspaces/ws.SZ9MaSA5u/overlay/gsdk/protocol/bluetooth/build_debug/bt_api/sw/bgapi/inc/sl_bt_api.h

num_heap_allocation_failures#

uint8_t sl_bt_evt_system_resource_exhausted_s::num_heap_allocation_failures

The Bluetooth stack has failed to make an allocation from the heap. Note that only allocations made by the Bluetooth stack are detected and reported by this field. Allocation failures in other components that use sl_malloc() or malloc() are not included in this count.


Definition at line 876 of file /mnt/raid/workspaces/ws.SZ9MaSA5u/overlay/gsdk/protocol/bluetooth/build_debug/bt_api/sw/bgapi/inc/sl_bt_api.h