]> mj.ucw.cz Git - libucw.git/blobdiff - lib/fastbuf.h
Added a direct I/O fastbuf backend.
[libucw.git] / lib / fastbuf.h
index 922798ff183515a3d102191c6e614569373088e1..c5e1deb860f8610ed5cbb5eba03f6723e78c9cd7 100644 (file)
@@ -97,6 +97,14 @@ struct fastbuf *fbmem_clone_read(struct fastbuf *);  /* Create reading fastbuf */
 
 struct fastbuf *bopen_mm(byte *name, uns mode);
 
+/* FastIO on files opened with O_DIRECT (see fb-direct.c for description) */
+
+struct asio_queue;
+struct fastbuf *fbdir_open(byte *name, uns mode, struct asio_queue *io_queue);
+struct fastbuf *fbdir_open_try(byte *name, uns mode, struct asio_queue *io_queue);
+struct fastbuf *fbdir_open_fd(int fd, struct asio_queue *io_queue);
+struct fastbuf *fbdir_open_tmp(int fd, struct asio_queue *io_queue);
+
 /* FastI on file descriptors with limit */
 
 struct fastbuf *bopen_limited_fd(int fd, uns bufsize, uns limit);