FreeBSD/sys/dev/ntb/ntb_hw/ntb_hw.c
/*
 * ntb_db_event() - notify driver context of a doorbell event
 * @ntb:        NTB device context
 * @vector:     Interrupt vector number
 *
 * Notify the driver context of a doorbell event.  If hardware supports
 * multiple interrupt vectors for doorbells, the vector number indicates which
 * vector received the interrupt.  The vector number is relative to the first
 * vector used for doorbells, starting at zero, and must be less than
 * ntb_db_vector_count().  The driver may call ntb_db_read() to check which
 * doorbell bits need service, and ntb_db_vector_mask() to determine which of
 * those bits are associated with the vector number.
 */
notify driver context of a doorbell event
@ntb:        NTB device context
@vector:     Interrupt vector number

Notify the driver context of a doorbell event.  If hardware supports
multiple interrupt vectors for doorbells, the vector number indicates which
vector received the interrupt.  The vector number is relative to the first
vector used for doorbells, starting at zero, and must be less than
ntb_db_vector_count().  The driver may call ntb_db_read() to check which
doorbell bits need service, and ntb_db_vector_mask() to determine which of
those bits are associated with the vector number.
notify driver context of a doorbell event @ntb : NTB device context @vector : Interrupt vector number Notify the driver context of a doorbell event . If hardware supports multiple interrupt vectors for doorbells the vector number indicates which vector received the interrupt . The vector number is relative to the first vector used for doorbells starting at zero and must be less than ntb_db_vector_count () . The driver may call ntb_db_read () to check which doorbell bits need service and ntb_db_vector_mask () to determine which of those bits are associated with the vector number .
static void
ntb_db_event(struct ntb_softc *ntb, uint32_t vec)
{
	CTX_LOCK(ntb);
	if (ntb->ctx_ops != NULL && ntb->ctx_ops->db_event != NULL)
		ntb->ctx_ops->db_event(ntb->ntb_ctx, vec);
	CTX_UNLOCK(ntb);
}
static void ntb_db_event ( struct ntb_softc * ntb , uint32_t vec ) { CTX_LOCK ( ntb ) ; if ( ntb -> ctx_ops != NULL && ntb -> ctx_ops -> db_event != NULL ) ntb -> ctx_ops -> db_event ( ntb -> ntb_ctx , vec ) ; CTX_UNLOCK ( ntb ) ; }
ntb_db_event() - notify driver context of a doorbell event
 @ntb:        NTB device context
 @vector:     Interrupt vector number
ntb_db_event () - notify driver context of a doorbell event @ntb : NTB device context @vector : Interrupt vector number