Logo Search packages:      
Sourcecode: linux version File versions  Download package

void drm_ctxbitmap_free ( struct drm_device *  dev,
int  ctx_handle 
)

Free a handle from the context bitmap.

Parameters:
dev DRM device.
ctx_handle context handle.
Clears the bit specified by ctx_handle in drm_device::ctx_bitmap and the entry in drm_device::ctx_idr, while holding the drm_device::struct_mutex lock.

Definition at line 59 of file drm_context.c.

Referenced by drm_release(), and drm_rmctx().

{
      mutex_lock(&dev->struct_mutex);
      idr_remove(&dev->ctx_idr, ctx_handle);
      mutex_unlock(&dev->struct_mutex);
}


Generated by  Doxygen 1.6.0   Back to index