FreeBSD/sys/dev/ntb/ntb_hw/ntb_hw.c
/*
 * ntb_link_event() - notify driver context of a change in link status
 * @ntb:        NTB device context
 *
 * Notify the driver context that the link status may have changed.  The driver
 * should call ntb_link_is_up() to get the current status.
 */
notify driver context of a change in link status
@ntb:        NTB device context

Notify the driver context that the link status may have changed.  The driver
should call ntb_link_is_up() to get the current status.
notify driver context of a change in link status @ntb : NTB device context Notify the driver context that the link status may have changed . The driver should call ntb_link_is_up () to get the current status .
void
ntb_link_event(struct ntb_softc *ntb)
{
	CTX_LOCK(ntb);
	if (ntb->ctx_ops != NULL && ntb->ctx_ops->link_event != NULL)
		ntb->ctx_ops->link_event(ntb->ntb_ctx);
	CTX_UNLOCK(ntb);
}
void ntb_link_event ( struct ntb_softc * ntb ) { CTX_LOCK ( ntb ) ; if ( ntb -> ctx_ops != NULL && ntb -> ctx_ops -> link_event != NULL ) ntb -> ctx_ops -> link_event ( ntb -> ntb_ctx ) ; CTX_UNLOCK ( ntb ) ; }
ntb_link_event() - notify driver context of a change in link status
 @ntb:        NTB device context
ntb_link_event () - notify driver context of a change in link status @ntb : NTB device context