drivers/gpu/drm/vmwgfx/vmwgfx_prime.c

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/vmwgfx/vmwgfx_prime.c

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/vmwgfx/vmwgfx_prime.c
Extension
.c
Size
3793 bytes
Lines
125
Domain
Driver Families
Bucket
drivers/gpu
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

if (vbo && vbo->is_dumb) {
			ret = drm_gem_prime_handle_to_fd(dev, file_priv, handle,
							 flags, prime_fd);
		} else {
			surf_handle = vmw_lookup_surface_handle_for_buffer(vmw,
									   vbo,
									   handle);
			if (surf_handle > 0)
				ret = ttm_prime_handle_to_fd(tfile, surf_handle,
							     flags, prime_fd);
			else
				ret = drm_gem_prime_handle_to_fd(dev, file_priv,
								 handle, flags,
								 prime_fd);
		}
		vmw_user_bo_unref(&vbo);
	}

	return ret;
}

Annotation

Implementation Notes