]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/staging/comedi/comedi_internal.h
staging: comedi: protect buffer from being freed while mmapped
[mirror_ubuntu-artful-kernel.git] / drivers / staging / comedi / comedi_internal.h
index 151693b1138331d71f91e4cadacb694150d14375..9a746570f1619a90ae3dadefb121edc59d0f3495 100644 (file)
@@ -16,6 +16,9 @@ void comedi_free_subdevice_minor(struct comedi_subdevice *s);
 int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
                     unsigned long new_size);
 void comedi_buf_reset(struct comedi_async *async);
+bool comedi_buf_is_mmapped(struct comedi_async *async);
+void comedi_buf_map_get(struct comedi_buf_map *bm);
+int comedi_buf_map_put(struct comedi_buf_map *bm);
 unsigned int comedi_buf_write_n_allocated(struct comedi_async *async);
 void comedi_device_cancel_all(struct comedi_device *dev);