static void nvdimm_build_fit_buffer(NvdimmFitBuffer *fit_buf)

{

    qemu_mutex_lock(&fit_buf->lock);

    g_array_free(fit_buf->fit, true);

    fit_buf->fit = nvdimm_build_device_structure();

    fit_buf->dirty = true;

    qemu_mutex_unlock(&fit_buf->lock);

}

static void nvdimm_build_fit_buffer(NvdimmFitBuffer *fit_buf)

{

    qemu_mutex_lock(&fit_buf->lock);

    g_array_free(fit_buf->fit, true);

    fit_buf->fit = nvdimm_build_device_structure();

    fit_buf->dirty = true;

    qemu_mutex_unlock(&fit_buf->lock);

}

static void FUNC_0(NvdimmFitBuffer *VAR_0)

{

    qemu_mutex_lock(&VAR_0->lock);

    g_array_free(VAR_0->fit, true);

    VAR_0->fit = nvdimm_build_device_structure();

    VAR_0->dirty = true;

    qemu_mutex_unlock(&VAR_0->lock);

}

static void FUNC_0(NvdimmFitBuffer *VAR_0)
{ qemu_mutex_lock(&VAR_0->lock); g_array_free(VAR_0->fit, true); VAR_0->fit = nvdimm_build_device_structure(); VAR_0->dirty = true; qemu_mutex_unlock(&VAR_0->lock); }