DRM_FRAMEBUFFER_CLEA(9) DRM Internals DRM_FRAMEBUFFER_CLEA(9)NAMEdrm_framebuffer_cleanup - remove a framebuffer object
SYNOPSIS
void drm_framebuffer_cleanup(struct drm_framebuffer * fb);
ARGUMENTS
fb
framebuffer to remove
DESCRIPTION
Cleanup references to a user-created framebuffer. This function is
intended to be used from the drivers ->destroy callback.
Note that this function does not remove the fb from active usuage - if
it is still used anywhere, hilarity can ensue since userspace could
call getfb on the id and get back -EINVAL. Obviously no concern at
driver unload time.
Also, the framebuffer will not be removed from the lookup idr - for
user-created framebuffers this will happen in in the rmfb ioctl. For
driver-private objects (e.g. for fbdev) drivers need to explicitly call
drm_framebuffer_unregister_private.
AUTHORS
Jesse Barnes <jesse.barnes@intel.com>
Intel Corporation,
Initial version
Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Ideas on board SPRL,
Driver internals
COPYRIGHTKernel Hackers Manual 3.11 November 2013 DRM_FRAMEBUFFER_CLEA(9)