FreeBSD/sys/dev/ntb/ntb_hw/ntb_hw.c
/*
 * ntb_db_vector_mask() - get a mask of doorbell bits serviced by a vector
 * @ntb:	NTB device context
 * @vector:	Doorbell vector number
 *
 * Each interrupt vector may have a different number or arrangement of bits.
 *
 * Return: A mask of doorbell bits serviced by a vector.
 */
get a mask of doorbell bits serviced by a vector
@ntb:        NTB device context
@vector:     Doorbell vector number

Each interrupt vector may have a different number or arrangement of bits.

A mask of doorbell bits serviced by a vector.
get a mask of doorbell bits serviced by a vector @ntb : NTB device context @vector : Doorbell vector number Each interrupt vector may have a different number or arrangement of bits . A mask of doorbell bits serviced by a vector .
uint64_t
ntb_db_vector_mask(struct ntb_softc *ntb, uint32_t vector)
{
	if (vector > ntb->db_vec_count)
		return (0);
	return (ntb->db_valid_mask & ntb_vec_mask(ntb, vector));
}
uint64_t ntb_db_vector_mask ( struct ntb_softc * ntb , uint32_t vector ) { if ( vector > ntb -> db_vec_count ) return ( 0 ) ; return ( ntb -> db_valid_mask & ntb_vec_mask ( ntb , vector ) ) ; }
ntb_db_vector_mask() - get a mask of doorbell bits serviced by a vector
 @ntb:        NTB device context
 @vector:     Doorbell vector number
ntb_db_vector_mask () - get a mask of doorbell bits serviced by a vector @ntb : NTB device context @vector : Doorbell vector number