src/platform/qemu/driver/vdisk.c
// mark a descriptor as free.
mark a descriptor as free.
mark a descriptor as free .
static void
free_desc(int i) {
    if (i >= DISK_DESC_NUM)
        PANIC("VDISK", "virtio_disk_intr 1");
    if (disk.free[i])
        PANIC("VDISK", "virtio_disk_intr 2");
    disk.desc[i].addr = 0;
    disk.free[i] = 1;
}
static void free_desc ( int i ) { if ( i >= DISK_DESC_NUM ) PANIC ( " " , " " ) ; if ( disk . free [ i ] ) PANIC ( " " , " " ) ; disk . desc [ i ] . addr = 0 ; disk . free [ i ] = 1 ; }
mark a descriptor as free.
mark a descriptor as free .