FreeBSD/sys/dev/ixl/ixl.h
/*
** Find the next available unused filter
*/
Find the next available unused filter
Find the next available unused filter
static inline struct ixl_mac_filter *
ixl_get_filter(struct ixl_vsi *vsi)
{
	struct ixl_mac_filter  *f;
	f = malloc(sizeof(struct ixl_mac_filter),
	    M_DEVBUF, M_NOWAIT | M_ZERO);
	if (f)
		SLIST_INSERT_HEAD(&vsi->ftl, f, next);
	return (f);
}
static inline struct ixl_mac_filter * ixl_get_filter ( struct ixl_vsi * vsi ) { struct ixl_mac_filter * f ; f = malloc ( sizeof ( struct ixl_mac_filter ) , M_DEVBUF , M_NOWAIT | M_ZERO ) ; if ( f ) SLIST_INSERT_HEAD ( & vsi -> ftl , f , next ) ; return ( f ) ; }
Find the next available unused filter
Find the next available unused filter
/* create a new empty filter */