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

◆ bm_zms_get_data_length()

ssize_t bm_zms_get_data_length ( struct bm_zms_fs * fs,
uint32_t id )

#include <bm_zms.h>

Gets the length of the data that is stored in an entry with a given id

Parameters
fsPointer to the file system.
idID of the entry whose data length to retrieve.
Returns
Data length contained in the ATE. On success, it will be equal to the number of bytes in the ATE. On error, returns negative value of error codes defined in errno.h.
Return values
Lengthof the entry with the given id (> 0) on success.
-EFAULTif fs is NULL.
-EACCESif BM_ZMS is still not initialized.
-EIOif there is a memory read/write error.
-ENOENTif there is no entry with the given id and history counter.