···2929#include <drm/drm_mode.h>30303131#include "drm_crtc_internal.h"3232+#include "drm_internal.h"32333334/**3435 * DOC: overview···4746 * KMS frame buffers.4847 *4948 * To support dumb objects drivers must implement the &drm_driver.dumb_create5050- * operation. &drm_driver.dumb_destroy defaults to drm_gem_dumb_destroy() if5151- * not set and &drm_driver.dumb_map_offset defaults to5252- * drm_gem_dumb_map_offset(). See the callbacks for further details.4949+ * and &drm_driver.dumb_map_offset operations (the latter defaults to5050+ * drm_gem_dumb_map_offset() if not set). Drivers that don't use GEM handles5151+ * additionally need to implement the &drm_driver.dumb_destroy operation. See5252+ * the callbacks for further details.5353 *5454 * Note that dumb objects may not be used for gpu acceleration, as has been5555 * attempted on some ARM embedded platforms. Such drivers really must have
+1-11
drivers/gpu/drm/drm_gem.c
···335335}336336EXPORT_SYMBOL_GPL(drm_gem_dumb_map_offset);337337338338-/**339339- * drm_gem_dumb_destroy - dumb fb callback helper for gem based drivers340340- * @file: drm file-private structure to remove the dumb handle from341341- * @dev: corresponding drm_device342342- * @handle: the dumb handle to remove343343- *344344- * This implements the &drm_driver.dumb_destroy kms driver callback for drivers345345- * which use gem to manage their backing storage.346346- */347338int drm_gem_dumb_destroy(struct drm_file *file,348339 struct drm_device *dev,349349- uint32_t handle)340340+ u32 handle)350341{351342 return drm_gem_handle_delete(file, handle);352343}353353-EXPORT_SYMBOL(drm_gem_dumb_destroy);354344355345/**356346 * drm_gem_handle_create_tail - internal functions to create a handle