XTOS / OPEN SOURCE REAL-TIME SYSTEMOPEN SOURCE · VERSION 0.9.0 · BUILD FROM SOURCE
libxtos-bcixtos_bci_reset_stats

xtos_bci_reset_stats

Requests that the device clear its statistics through ioctl.

On this page

Declaration

c
#include <xtos/bci.h>

int xtos_bci_reset_stats(xtos_bci_session_t *session);

Parameters

ParameterTypeDescription
sessionxtos_bci_session_t *Non-NULL session handle.

Return value

Returns the underlying ioctl’s 0 or -1.

Errors

errnoCondition
EINVALsession is NULL or the driver rejects the request.
ENOTTY/EOPNOTSUPPThe device does not support resetting statistics.
system errnoPreserves driver or system errno from ioctl failure.

Notes

  • Reset is a device-side operation that may race production; interpret before/after counts according to driver semantics.
  • The function allocates no memory, returns no pre-reset snapshot, and provides no concurrency lock.

Example

Source

This reference describes headers and implementation at OpenXTOS commit dd313955ad57542bcd2af8827157d1bbd0cf5e83.