key-value/kv.c
/**
 * @brief Un-map a shared memory object from the current process
 * @param shm Address of the pointer used for accessing shared memory object
 * @return KV_OK on success and Non KV_OK otherwise
 */
@brief Un-map a shared memory object from the current process
@param shm Address of the pointer used for accessing shared memory object
@return KV_OK on success and Non KV_OK otherwise
@brief Un - map a shared memory object from the current process @param shm Address of the pointer used for accessing shared memory object @return KV_OK on success and Non KV_OK otherwise
static int sm_detach(store_t **shm)
{
    if (!shm)
        return KV_ERR_ARG;
    int r = munmap(*shm, sizeof(store_t));
    if (r == -1)
        return KV_ERR;
    *shm = NULL;
    return KV_OK;
}
static int sm_detach ( store_t * * shm ) { if ( ! shm ) return KV_ERR_ARG ; int r = munmap ( * shm , sizeof ( store_t ) ) ; if ( r == -1 ) return KV_ERR ; * shm = NULL ; return KV_OK ; }
@brief Un-map a shared memory object from the current process
 @param shm Address of the pointer used for accessing shared memory object
 @return KV_OK on success and Non KV_OK otherwise
@brief Un - map a shared memory object from the current process @param shm Address of the pointer used for accessing shared memory object @return KV_OK on success and Non KV_OK otherwise