extern "C" fn nexus_get_buf_cb(
        ch: *mut spdk_io_channel,
        io: *mut spdk_bdev_io,
        success: bool,
    ) {
        if !success {
            let bio = Bio::from(io);
            let nexus = bio.nexus_as_ref();
            warn!("{}: Failed to get io buffer for io {:?}", nexus.name, bio);
        }

        let ch = NexusChannel::inner_from_channel(ch);
        let (desc, ch) = ch.readers[ch.previous].io_tuple();
        let ret = Self::readv_impl(io, desc, ch);
        if ret != 0 {
            let bio = Bio::from(io);
            let nexus = bio.nexus_as_ref();
            error!("{}: Failed to submit IO {:?}", nexus.name, bio);
        }
    }
/// callback when the IO has buffer associated with itself
callback when the IO has buffer associated with itself
callback when the IO has buffer associated with itself
extern "C" fn nexus_get_buf_cb(
        ch: *mut spdk_io_channel,
        io: *mut spdk_bdev_io,
        success: bool,
    ) {
        if !success {
            let bio = Bio::from(io);
            let nexus = bio.nexus_as_ref();
            warn!("{}: Failed to get io buffer for io {:?}", nexus.name, bio);
        }
        let ch = NexusChannel::inner_from_channel(ch);
        let (desc, ch) = ch.readers[ch.previous].io_tuple();
        let ret = Self::readv_impl(io, desc, ch);
        if ret != 0 {
            let bio = Bio::from(io);
            let nexus = bio.nexus_as_ref();
            error!("{}: Failed to submit IO {:?}", nexus.name, bio);
        }
    }
extern " " fn nexus_get_buf_cb ( ch : * mut spdk_io_channel , io : * mut spdk_bdev_io , success : bool , ) { if ! success { let bio = Bio :: from ( io ) ; let nexus = bio . nexus_as_ref ( ) ; warn ! ( " " nexus name bio ) ; } let ch = NexusChannel :: inner_from_channel ( ch ) ; let ( desc , ch ) = ch . readers [ ch . previous ] . io_tuple ( ) ; let ret = Self :: readv_impl ( io , desc , ch ) ; if ret != 0 { let bio = Bio :: from ( io ) ; let nexus = bio . nexus_as_ref ( ) ; error ! ( " " nexus name bio ) ; } }
callback when the IO has buffer associated with itself
callback when the IO has buffer associated with itself
ch
*mut spdk_io_channel
io
*mut spdk_bdev_io
success
bool