FreeBSD/sys/dev/ntb/ntb_hw/ntb_hw.c
/*
 * ntb_clear_ctx() - disassociate any driver context from an ntb device
 * @ntb:        NTB device context
 *
 * Clear any association that may exist between a driver context and the ntb
 * device.
 */
disassociate any driver context from an ntb device
@ntb:        NTB device context

Clear any association that may exist between a driver context and the ntb
device.
disassociate any driver context from an ntb device @ntb : NTB device context Clear any association that may exist between a driver context and the ntb device .
void
ntb_clear_ctx(struct ntb_softc *ntb)
{
	CTX_LOCK(ntb);
	ntb->ntb_ctx = NULL;
	ntb->ctx_ops = NULL;
	CTX_UNLOCK(ntb);
}
void ntb_clear_ctx ( struct ntb_softc * ntb ) { CTX_LOCK ( ntb ) ; ntb -> ntb_ctx = NULL ; ntb -> ctx_ops = NULL ; CTX_UNLOCK ( ntb ) ; }
ntb_clear_ctx() - disassociate any driver context from an ntb device
 @ntb:        NTB device context
ntb_clear_ctx () - disassociate any driver context from an ntb device @ntb : NTB device context