![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| 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.
| [in] | storage | Storage instance to uninitialize. |
| 0 | on success. |
| -EFAULT | The storage instance storage is NULL. |
| -EPERM | If storage is in an invalid state. |
| -EBUSY | If the implementation-specific backend is busy with an ongoing operation. |
| -ENOTSUP | If the backend does not support uninitialization. |