xtos_ bci_ session_ destroy
Stops an active session, unmaps its buffer, closes its fd, and frees the session.
On this page
Declaration
#include <xtos/bci.h>
void xtos_bci_session_destroy(xtos_bci_session_t *session);Parameters
| Parameter | Type | Description |
|---|---|---|
| session | xtos_bci_session_t * | Session handle; NULL is a no-op. |
Return value
Returns no value; failures from stop, munmap, or close cannot be reported.
Errors
No errno error return. See Notes for input restrictions.
Notes
- Stop using the fd, mapping, and other session interfaces first; all borrowed resources expire after destroy.
- When streaming is true, the function attempts stop; it does not wait for other threads or provide concurrency safety.
Example
Source
This reference describes headers and implementation at OpenXTOS commit dd313955ad57542bcd2af8827157d1bbd0cf5e83.