projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a2b6f6
)
made comedi_mmap_v22() mark subdevice as mmapped
author
Frank Mori Hess
<fmhess@speakeasy.net>
Mon, 29 Jan 2001 01:10:23 +0000
(
01:10
+0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Mon, 29 Jan 2001 01:10:23 +0000
(
01:10
+0000)
comedi/comedi_fops.c
patch
|
blob
|
history
diff --git
a/comedi/comedi_fops.c
b/comedi/comedi_fops.c
index 1a527b1e316202ea7402b788e6beb69d8b222a42..492567a43039869c05c9620ad5e93e48b32ca9f0 100644
(file)
--- a/
comedi/comedi_fops.c
+++ b/
comedi/comedi_fops.c
@@
-1250,7
+1250,7
@@
static int do_cancel(comedi_device *dev,comedi_subdevice *s)
issues:
what happens when the underlying buffer gets changed?
-
+
*/
static int comedi_mmap_v22(struct file * file, struct vm_area_struct *vma)
{
@@
-1275,13
+1275,14
@@
static int comedi_mmap_v22(struct file * file, struct vm_area_struct *vma)
}
rvmmap(s->prealloc_buf,s->prealloc_bufsz,vma);
-
+
//vma->vm_file = file;
//vma->vm_ops = &comedi_vm_ops;
//file_atomic_inc(&file->f_count);
- /* XXX mark subdev as mapped */
-
+ /* mark subdev as mapped */
+ s->subdev_flags |= SDF_MMAPPED;
+
return 0;
}
#endif