]> mj.ucw.cz Git - libucw.git/blobdiff - lib/fastbuf.h
Updated all users of the timer interface to pass an explicit timer context.
[libucw.git] / lib / fastbuf.h
index 283281075561aed591277313a9cb4c329c58f60f..b5aa567ebb72dc0213c5fb67f3b041c2fa2dc12f 100644 (file)
@@ -100,6 +100,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(struct asio_queue *io_queue);
+
 /* FastI on file descriptors with limit */
 
 struct fastbuf *bopen_limited_fd(int fd, uns bufsize, uns limit);
@@ -402,7 +410,7 @@ static inline int bskip(struct fastbuf *f, uns len)
     return bskip_slow(f, len);
 }
 
-/* I/O on addr_int_t */
+/* I/O on uintptr_t */
 
 #ifdef CPU_64BIT_POINTERS
 #define bputa(x,p) bputq(x,p)