FreeBSD/sys/kern/kern_rangelock.c
/*
 * Two entries are compatible if their ranges do not overlap, or both
 * entries are for read.
 */
Two entries are compatible if their ranges do not overlap, or both
entries are for read.
Two entries are compatible if their ranges do not overlap or both entries are for read .
static int
ranges_overlap(const struct rl_q_entry *e1,
    const struct rl_q_entry *e2)
{
	if (e1->rl_q_start < e2->rl_q_end && e1->rl_q_end > e2->rl_q_start)
		return (1);
	return (0);
}
static int ranges_overlap ( const struct rl_q_entry * e1 , const struct rl_q_entry * e2 ) { if ( e1 -> rl_q_start < e2 -> rl_q_end && e1 -> rl_q_end > e2 -> rl_q_start ) return ( 1 ) ; return ( 0 ) ; }
Two entries are compatible if their ranges do not overlap, or both
 entries are for read.
Two entries are compatible if their ranges do not overlap or both entries are for read .