1 From a5fef5986c407d56f4e4cf618d6099e122a096ef Mon Sep 17 00:00:00 2001
\r
2 From: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
\r
3 Date: Fri, 27 Feb 2009 13:04:46 +0100
\r
4 Subject: [PATCH 7/8] drm: Add unlocked IOCTL functionality from the drm repo.
\r
7 drivers/gpu/drm/drm_drv.c | 11 ++++++++++-
\r
8 include/drm/drmP.h | 2 ++
\r
9 2 files changed, 12 insertions(+), 1 deletions(-)
\r
11 Index: linux-2.6.28/drivers/gpu/drm/drm_drv.c
12 ===================================================================
13 --- linux-2.6.28.orig/drivers/gpu/drm/drm_drv.c 2009-03-12 13:15:18.000000000 +0000
14 +++ linux-2.6.28/drivers/gpu/drm/drm_drv.c 2009-03-12 13:15:41.000000000 +0000
16 * Looks up the ioctl function in the ::ioctls table, checking for root
17 * previleges if so required, and dispatches to the respective function.
20 int drm_ioctl(struct inode *inode, struct file *filp,
21 unsigned int cmd, unsigned long arg)
23 + return drm_unlocked_ioctl(filp, cmd, arg);
25 +EXPORT_SYMBOL(drm_ioctl);
27 +long drm_unlocked_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
29 struct drm_file *file_priv = filp->private_data;
30 struct drm_device *dev = file_priv->minor->dev;
31 struct drm_ioctl_desc *ioctl;
36 -EXPORT_SYMBOL(drm_ioctl);
37 +EXPORT_SYMBOL(drm_unlocked_ioctl);
39 drm_local_map_t *drm_getsarea(struct drm_device *dev)
41 Index: linux-2.6.28/include/drm/drmP.h
42 ===================================================================
43 --- linux-2.6.28.orig/include/drm/drmP.h 2009-03-12 13:15:18.000000000 +0000
44 +++ linux-2.6.28/include/drm/drmP.h 2009-03-12 13:15:41.000000000 +0000
46 extern void drm_exit(struct drm_driver *driver);
47 extern int drm_ioctl(struct inode *inode, struct file *filp,
48 unsigned int cmd, unsigned long arg);
49 +extern long drm_unlocked_ioctl(struct file *filp,
50 + unsigned int cmd, unsigned long arg);
51 extern long drm_compat_ioctl(struct file *filp,
52 unsigned int cmd, unsigned long arg);
53 extern int drm_lastclose(struct drm_device *dev);