nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ bm_storage_uninit()

int bm_storage_uninit ( struct bm_storage * storage)

#include <bm_storage.h>

Uninitialize a storage instance.

Uninitialization prevents an instance from accepting new operations until it is re-initialized.

If the backend executes operations asynchronously, any outstanding operations will complete as normal and generate an event. If the backend executes operations synchronously, uninitialization will fail.

Parameters
[in]storageStorage instance to uninitialize.
Return values
0on success.
-EFAULTThe storage instance storage is NULL.
-EPERMIf storage is in an invalid state.
-EBUSYIf the implementation-specific backend is busy with an ongoing operation.
-ENOTSUPIf the backend does not support uninitialization.