Пример #1
0
static void nic_commit(libxl__egc *egc, libxl__checkpoint_device *dev)
{
    int rc;
    libxl__remus_device_nic *remus_nic = dev->concrete_data;

    STATE_AO_GC(dev->cds->ao);

    rc = remus_netbuf_op(remus_nic, dev->cds, tc_buffer_release);

    dev->aodev.rc = rc;
    dev->aodev.callback(egc, &dev->aodev);
}
Пример #2
0
static void nic_postsuspend(libxl__egc *egc, libxl__remus_device *dev)
{
    int rc;
    libxl__remus_device_nic *remus_nic = dev->concrete_data;

    STATE_AO_GC(dev->rds->ao);

    rc = remus_netbuf_op(remus_nic, dev->rds, tc_buffer_start);

    dev->aodev.rc = rc;
    dev->aodev.callback(egc, &dev->aodev);
}