FreeBSD/sys/dev/drm2/drm_agpsupport.c
/**
 * Release the AGP device.
 *
 * \param dev DRM device that is to release AGP.
 * \return zero on success or a negative number on failure.
 *
 * Verifies the AGP device has been acquired and calls \c agp_backend_release.
 */
Release the AGP device.
\param dev DRM device that is to release AGP.
\return zero on success or a negative number on failure.

Verifies the AGP device has been acquired and calls \c agp_backend_release.
Release the AGP device . \ param dev DRM device that is to release AGP . \ return zero on success or a negative number on failure . Verifies the AGP device has been acquired and calls \ c agp_backend_release .
int drm_agp_release(struct drm_device * dev)
{
	if (!dev->agp || !dev->agp->acquired)
		return -EINVAL;
	agp_release(dev->agp->bridge);
	dev->agp->acquired = 0;
	return 0;
}
int drm_agp_release ( struct drm_device * dev ) { if ( ! dev -> agp || ! dev -> agp -> acquired ) return - EINVAL ; agp_release ( dev -> agp -> bridge ) ; dev -> agp -> acquired = 0 ; return 0 ; }
Release the AGP device.
Release the AGP device .