sys/kern/subr_bus.c
/**
 * @brief Reclaim memory used by a resource list.
 *
 * This function frees the memory for all resource entries on the list
 * (if any).
 *
 * @param rl		the resource list to free		
 */
@brief Reclaim memory used by a resource list.
This function frees the memory for all resource entries on the list
(if any).

@param rl            the resource list to free
@brief Reclaim memory used by a resource list . This function frees the memory for all resource entries on the list ( if any ) . @param rl the resource list to free
void
resource_list_free(struct resource_list *rl)
{
	struct resource_list_entry *rle;
	while ((rle = STAILQ_FIRST(rl)) != NULL) {
		if (rle->res)
			panic("resource_list_free: resource entry is busy");
		STAILQ_REMOVE_HEAD(rl, link);
		free(rle, M_BUS);
	}
}
void resource_list_free ( struct resource_list * rl ) { struct resource_list_entry * rle ; while ( ( rle = STAILQ_FIRST ( rl ) ) != NULL ) { if ( rle -> res ) panic ( " " ) ; STAILQ_REMOVE_HEAD ( rl , link ) ; free ( rle , M_BUS ) ; } }
@brief Reclaim memory used by a resource list.
@brief Reclaim memory used by a resource list .