usermode/library/mcore/src/log/phlog_base.c File Reference

Physical log implemented using a torn-bit per word to detect torn words. More...

#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <result.h>
#include "phlog_base.h"
#include "hal/pcm_i.h"

Go to the source code of this file.

Functions

m_result_t m_phlog_base_check_consistency (m_phlog_base_nvmd_t *nvmd, pcm_word_t *nvphlog, uint64_t *stable_tail)
 Check the consistency of the non-volatile log and find the consistent stable region starting from the head.
m_result_t m_phlog_base_format (pcm_storeset_t *set, m_phlog_base_nvmd_t *nvmd, pcm_word_t *nvphlog, int type)
 Formats the non-volatile physical log for reuse.
m_result_t m_phlog_base_alloc (m_phlog_base_t **phlog_basep)
 Allocates a volatile log structure.
m_result_t m_phlog_base_init (m_phlog_base_t *phlog, m_phlog_base_nvmd_t *nvmd, pcm_word_t *nvphlog)
 Initializes the volatile log descriptor using the non-volatile metadata referenced by log_dsc.
m_result_t m_phlog_base_truncate_async (pcm_storeset_t *set, m_phlog_base_t *phlog)
 Truncates the log up to the read_index point.


Detailed Description

Physical log implemented using a torn-bit per word to detect torn words.

Definition in file phlog_base.c.


Generated on Sat Apr 23 11:43:36 2011 for Mnemosyne by  doxygen 1.4.7