FreeBSD/sys/net/if_llatbl.c
/*
 * Runs specified callback for each entry in @llt.
 * Caller does the locking.
 *
 */
Runs specified callback for each entry in @llt.
Caller does the locking.
Runs specified callback for each entry in @llt . Caller does the locking .
static int
htable_foreach_lle(struct lltable *llt, llt_foreach_cb_t *f, void *farg)
{
	struct llentry *lle, *next;
	int i, error;
	error = 0;
	for (i = 0; i < llt->llt_hsize; i++) {
		LIST_FOREACH_SAFE(lle, &llt->lle_head[i], lle_next, next) {
			error = f(llt, lle, farg);
			if (error != 0)
				break;
		}
	}
	return (error);
}
static int htable_foreach_lle ( struct lltable * llt , llt_foreach_cb_t * f , void * farg ) { struct llentry * lle , * next ; int i , error ; error = 0 ; for ( i = 0 ; i < llt -> llt_hsize ; i ++ ) { LIST_FOREACH_SAFE ( lle , & llt -> lle_head [ i ] , lle_next , next ) { error = f ( llt , lle , farg ) ; if ( error != 0 ) break ; } } return ( error ) ; }
Runs specified callback for each entry in @llt.
Runs specified callback for each entry in @llt .