void qmp_guest_suspend_ram(Error **errp)

{

    Error *local_err = NULL;

    GuestSuspendMode *mode = g_malloc(sizeof(GuestSuspendMode));



    *mode = GUEST_SUSPEND_MODE_RAM;

    check_suspend_mode(*mode, &local_err);

    acquire_privilege(SE_SHUTDOWN_NAME, &local_err);

    execute_async(do_suspend, mode, &local_err);



    if (local_err) {

        error_propagate(errp, local_err);

        g_free(mode);

    }

}

void qmp_guest_suspend_ram(Error **errp)

{

    Error *local_err = NULL;

    GuestSuspendMode *mode = g_malloc(sizeof(GuestSuspendMode));



    *mode = GUEST_SUSPEND_MODE_RAM;

    check_suspend_mode(*mode, &local_err);

    acquire_privilege(SE_SHUTDOWN_NAME, &local_err);

    execute_async(do_suspend, mode, &local_err);



    if (local_err) {

        error_propagate(errp, local_err);

        g_free(mode);

    }

}

    GuestSuspendMode *mode = g_malloc(sizeof(GuestSuspendMode));     GuestSuspendMode *mode = g_malloc(sizeof(GuestSuspendMode));
void FUNC_0(Error **VAR_0)

{

    Error *local_err = NULL;

    GuestSuspendMode *mode = g_malloc(sizeof(GuestSuspendMode));



    *mode = GUEST_SUSPEND_MODE_RAM;

    check_suspend_mode(*mode, &local_err);

    acquire_privilege(SE_SHUTDOWN_NAME, &local_err);

    execute_async(do_suspend, mode, &local_err);



    if (local_err) {

        error_propagate(VAR_0, local_err);

        g_free(mode);

    }

}

void FUNC_0(Error **VAR_0)
{ Error *local_err = NULL; GuestSuspendMode *mode = g_malloc(sizeof(GuestSuspendMode)); *mode = GUEST_SUSPEND_MODE_RAM; check_suspend_mode(*mode, &local_err); acquire_privilege(SE_SHUTDOWN_NAME, &local_err); execute_async(do_suspend, mode, &local_err); if (local_err) { error_propagate(VAR_0, local_err); g_free(mode); } }