pub extern "C" fn reconfigure(
        device: *mut c_void,
        ctx: Box<ReconfigureCtx>,
        event: &DREvent,
    ) {
        match event {
            DREvent::ChildOffline
            | DREvent::ChildOnline
            | DREvent::ChildRemove
            | DREvent::ChildFault
            | DREvent::ChildRebuild
            | DREvent::ChildStatusSync => unsafe {
                spdk_for_each_channel(
                    device,
                    Some(NexusChannel::refresh_io_channels),
                    Box::into_raw(ctx).cast(),
                    Some(Self::reconfigure_completed),
                );
            },
        }
    }
/// function called when we receive a Dynamic Reconfigure event (DR)
function called when we receive a Dynamic Reconfigure event (DR)
function called when we receive a Dynamic Reconfigure event ( DR )
pub extern "C" fn reconfigure(
        device: *mut c_void,
        ctx: Box<ReconfigureCtx>,
        event: &DREvent,
    ) {
        match event {
            DREvent::ChildOffline
            | DREvent::ChildOnline
            | DREvent::ChildRemove
            | DREvent::ChildFault
            | DREvent::ChildRebuild
            | DREvent::ChildStatusSync => unsafe {
                spdk_for_each_channel(
                    device,
                    Some(NexusChannel::refresh_io_channels),
                    Box::into_raw(ctx).cast(),
                    Some(Self::reconfigure_completed),
                );
            },
        }
    }
pub extern " " fn reconfigure ( device : * mut c_void , ctx : Box < ReconfigureCtx > , event : & DREvent , ) { match event { DREvent :: ChildOffline | DREvent :: ChildOnline | DREvent :: ChildRemove | DREvent :: ChildFault | DREvent :: ChildRebuild | DREvent :: ChildStatusSync => unsafe { spdk_for_each_channel ( device , Some ( NexusChannel :: refresh_io_channels ) , Box :: into_raw ( ctx ) . cast ( ) , Some ( Self :: reconfigure_completed ) , ) ; } , } }
function called when we receive a Dynamic Reconfigure event (DR)
function called when we receive a Dynamic Reconfigure event ( DR )
device
*mut c_void
ctx
Box<ReconfigureCtx>
event
&DREvent