FreeBSD/sys/net/if_llatbl.c
/*
 *
 * Performs generic cleanup routines and frees lle.
 *
 * Called for non-linked entries, with callouts and
 * other AF-specific cleanups performed.
 *
 * @lle must be passed WLOCK'ed
 *
 * Returns the number of held packets, if any, that were dropped.
 */
Performs generic cleanup routines and frees lle.
Called for non-linked entries, with callouts and
other AF-specific cleanups performed.

@lle must be passed WLOCK'ed

Returns the number of held packets, if any, that were dropped.
Performs generic cleanup routines and frees lle . Called for non - linked entries with callouts and other AF - specific cleanups performed . @lle must be passed WLOCK ' ed Returns the number of held packets if any that were dropped .
size_t
llentry_free(struct llentry *lle)
{
	size_t pkts_dropped;
	LLE_WLOCK_ASSERT(lle);
	KASSERT((lle->la_flags & LLE_LINKED) == 0, ("freeing linked lle"));
	pkts_dropped = lltable_drop_entry_queue(lle);
	LLE_FREE_LOCKED(lle);
	return (pkts_dropped);
}
size_t llentry_free ( struct llentry * lle ) { size_t pkts_dropped ; LLE_WLOCK_ASSERT ( lle ) ; KASSERT ( ( lle -> la_flags & LLE_LINKED ) == 0 , ( " " ) ) ; pkts_dropped = lltable_drop_entry_queue ( lle ) ; LLE_FREE_LOCKED ( lle ) ; return ( pkts_dropped ) ; }
Performs generic cleanup routines and frees lle.
Performs generic cleanup routines and frees lle .