summaryrefslogtreecommitdiff
path: root/linux-core/i830_dma.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2003-02-25 03:59:00 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2003-02-25 03:59:00 +0000
commit6afda269546d361c1ec43e0be5aad5738548ae98 (patch)
tree448ee4715df7efe82a9a8247fd6adf0b0d6fb9e2 /linux-core/i830_dma.c
parentb487f30ea5c129eed1dd85f7ad79db3d2485b1f8 (diff)
Use file pointers instead of pids for resource and lock tracking
Diffstat (limited to 'linux-core/i830_dma.c')
-rw-r--r--linux-core/i830_dma.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/linux-core/i830_dma.c b/linux-core/i830_dma.c
index d29e21cbf..6c4b34b98 100644
--- a/linux-core/i830_dma.c
+++ b/linux-core/i830_dma.c
@@ -262,7 +262,7 @@ static int i830_dma_get_buffer(drm_device_t *dev, drm_i830_dma_t *d,
DRM_ERROR("mapbuf failed, retcode %d\n", retcode);
return retcode;
}
- buf->pid = priv->pid;
+ buf->filp = filp;
buf_priv = buf->dev_private;
d->granted = 1;
d->request_idx = buf->idx;
@@ -1086,8 +1086,10 @@ static int i830_flush_queue(drm_device_t *dev)
}
/* Must be called with the lock held */
-void i830_reclaim_buffers(drm_device_t *dev, pid_t pid)
+void i830_reclaim_buffers( struct file *filp )
{
+ drm_file_t *priv = filp->private_data;
+ drm_device_t *dev = priv->dev;
drm_device_dma_t *dma = dev->dma;
int i;