FreeBSD/sys/dev/bhnd/bhndb/bhndb_private.h
/**
 * Returns true if a dynamic window allocation is marked as free.
 * 
 * @param br The resource state owning @p dwa.
 * @param dwa The dynamic window allocation record to be checked.
 */
Returns true if a dynamic window allocation is marked as free.

@param br The resource state owning @p dwa.
@param dwa The dynamic window allocation record to be checked.
Returns true if a dynamic window allocation is marked as free . @param br The resource state owning @p dwa . @param dwa The dynamic window allocation record to be checked .
static inline bool
bhndb_dw_is_free(struct bhndb_resources *br, struct bhndb_dw_alloc *dwa)
{
	bool is_free = LIST_EMPTY(&dwa->refs);
	KASSERT(is_free == ((br->dwa_freelist & (1 << dwa->rnid)) != 0),
	    ("refs out of sync with free list"));
	return (is_free);
}
static inline bool bhndb_dw_is_free ( struct bhndb_resources * br , struct bhndb_dw_alloc * dwa ) { bool is_free = LIST_EMPTY ( & dwa -> refs ) ; KASSERT ( is_free == ( ( br -> dwa_freelist & ( 1 << dwa -> rnid ) ) != 0 ) , ( " " ) ) ; return ( is_free ) ; }
Returns true if a dynamic window allocation is marked as free.
Returns true if a dynamic window allocation is marked as free .