usermode/library/mcore/src/log/phlog_tornbit.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_tornbit.h"
#include "hal/pcm_i.h"
#include <smmintrin.h>

Go to the source code of this file.

Functions

uint64_t load_nt_word (void *addr)
m_result_t m_phlog_tornbit_check_consistency (m_phlog_tornbit_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_tornbit_format (pcm_storeset_t *set, m_phlog_tornbit_nvmd_t *nvmd, pcm_word_t *nvphlog, int type)
 Formats the non-volatile physical log for reuse.
m_result_t m_phlog_tornbit_alloc (m_phlog_tornbit_t **phlog_tornbitp)
 Allocates a volatile log structure.
m_result_t m_phlog_tornbit_init (m_phlog_tornbit_t *phlog, m_phlog_tornbit_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_tornbit_truncate_async (pcm_storeset_t *set, m_phlog_tornbit_t *phlog)
 Truncates the log up to the read_index point.
void m_phlog_print_buffer (m_phlog_tornbit_t *log)


Detailed Description

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

Definition in file phlog_tornbit.c.


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