summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drmP.h
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-04-12 14:14:03 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-04-12 14:14:03 +0000
commit22a3a1e6d4f41d3dc4b564e66874943ec62688d7 (patch)
treeb2002c350b1a99afdcfef3013dadd8d61b99f63b /sys/dev/pci/drm/drmP.h
parent027b1334162c3cbaf6167038026b6d7354256093 (diff)
Make sure that the drawables are properly freed when removed, and upon
last close of the device nuke them all. Inspired by similar code in the linux drm driver. Tested by many.
Diffstat (limited to 'sys/dev/pci/drm/drmP.h')
-rw-r--r--sys/dev/pci/drm/drmP.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h
index c9a2b235992..09f0627976f 100644
--- a/sys/dev/pci/drm/drmP.h
+++ b/sys/dev/pci/drm/drmP.h
@@ -1095,6 +1095,7 @@ int drm_getsareactx(drm_device_t *dev, void *data, struct drm_file *file_priv);
int drm_adddraw(drm_device_t *dev, void *data, struct drm_file *file_priv);
int drm_rmdraw(drm_device_t *dev, void *data, struct drm_file *file_priv);
int drm_update_draw(drm_device_t *dev, void *data, struct drm_file *file_priv);
+void drm_drawable_free_all(struct drm_device *);
struct drm_drawable_info *drm_get_drawable_info(drm_device_t *dev, int handle);
/* Authentication IOCTL support (drm_auth.c) */