pub fn new(max_size: u16) -> Self {
        QueueConfig {
            desc_table: GuestAddress(0),
            avail_ring: GuestAddress(0),
            used_ring: GuestAddress(0),
            max_size,
            size: max_size,
            ready: false,
            vector: 0,
            next_avail: 0,
            next_used: 0,
            last_signal_used: 0,
        }
    }
/// Create configuration for a virtqueue.
///
/// # Arguments
///
/// * `max_size` - The maximum size of the virtqueue.
///
Create configuration for a virtqueue.
Create configuration for a virtqueue .
pub fn new(max_size: u16) -> Self {
        QueueConfig {
            desc_table: GuestAddress(0),
            avail_ring: GuestAddress(0),
            used_ring: GuestAddress(0),
            max_size,
            size: max_size,
            ready: false,
            vector: 0,
            next_avail: 0,
            next_used: 0,
            last_signal_used: 0,
        }
    }
pub fn new ( max_size : u16 ) -> Self { QueueConfig { desc_table : GuestAddress ( 0 ) , avail_ring : GuestAddress ( 0 ) , used_ring : GuestAddress ( 0 ) , max_size , size : max_size , ready : false , vector : 0 , next_avail : 0 , next_used : 0 , last_signal_used : 0 , } }
Create configuration for a virtqueue.
Create configuration for a virtqueue .
max_size
u16
max_size
u16