FreeBSD/sys/dev/drm2/drm_agpsupport.c
/**
 * Search for the AGP memory entry associated with a handle.
 *
 * \param dev DRM device structure.
 * \param handle AGP memory handle.
 * \return pointer to the drm_agp_mem structure associated with \p handle.
 *
 * Walks through drm_agp_head::memory until finding a matching handle.
 */
Search for the AGP memory entry associated with a handle.
\param dev DRM device structure.
\param handle AGP memory handle.
\return pointer to the drm_agp_mem structure associated with \p handle.

Walks through drm_agp_head::memory until finding a matching handle.
Search for the AGP memory entry associated with a handle . \ param dev DRM device structure . \ param handle AGP memory handle . \ return pointer to the drm_agp_mem structure associated with \ p handle . Walks through drm_agp_head :: memory until finding a matching handle .
static struct drm_agp_mem *drm_agp_lookup_entry(struct drm_device * dev,
					   unsigned long handle)
{
	struct drm_agp_mem *entry;
	list_for_each_entry(entry, &dev->agp->memory, head) {
		if (entry->handle == handle)
			return entry;
	}
	return NULL;
}
static struct drm_agp_mem * drm_agp_lookup_entry ( struct drm_device * dev , unsigned long handle ) { struct drm_agp_mem * entry ; list_for_each_entry ( entry , & dev -> agp -> memory , head ) { if ( entry -> handle == handle ) return entry ; } return NULL ; }
Search for the AGP memory entry associated with a handle.
Search for the AGP memory entry associated with a handle .