FreeBSD/sys/kern/subr_bus.c
/**
 * @brief Delete a resource entry.
 *
 * @param rl		the resource list to edit
 * @param type		the resource entry type (e.g. SYS_RES_MEMORY)
 * @param rid		the resource identifier
 */
@brief Delete a resource entry.
@param rl            the resource list to edit
@param type          the resource entry type
@param rid           the resource identifier
@brief Delete a resource entry . @param rl the resource list to edit @param type the resource entry type @param rid the resource identifier
void
resource_list_delete(struct resource_list *rl, int type, int rid)
{
	struct resource_list_entry *rle = resource_list_find(rl, type, rid);
	if (rle) {
		if (rle->res != NULL)
			panic("resource_list_delete: resource has not been released");
		STAILQ_REMOVE(rl, rle, resource_list_entry, link);
		free(rle, M_BUS);
	}
}
void resource_list_delete ( struct resource_list * rl , int type , int rid ) { struct resource_list_entry * rle = resource_list_find ( rl , type , rid ) ; if ( rle ) { if ( rle -> res != NULL ) panic ( " " ) ; STAILQ_REMOVE ( rl , rle , resource_list_entry , link ) ; free ( rle , M_BUS ) ; } }
@brief Delete a resource entry.
@brief Delete a resource entry .