FreeBSD/sys/dev/esp/ncr53c9x.c
/*
 * Search linked list for LUN info by LUN id.
 */
Search linked list for LUN info by LUN id.
Search linked list for LUN info by LUN id .
static struct ncr53c9x_linfo *
ncr53c9x_lunsearch(struct ncr53c9x_tinfo *ti, int64_t lun)
{
	struct ncr53c9x_linfo *li;
	LIST_FOREACH(li, &ti->luns, link)
		if (li->lun == lun)
			return (li);
	return (NULL);
}
static struct ncr53c9x_linfo * ncr53c9x_lunsearch ( struct ncr53c9x_tinfo * ti , int64_t lun ) { struct ncr53c9x_linfo * li ; LIST_FOREACH ( li , & ti -> luns , link ) if ( li -> lun == lun ) return ( li ) ; return ( NULL ) ; }
Search linked list for LUN info by LUN id.
Search linked list for LUN info by LUN id .