···333333 external submit_unlinkat : t -> id -> Unix.file_descr -> Sketch.ptr -> bool -> bool = "ocaml_uring_submit_unlinkat" [@@noalloc]
334334 external submit_send_msg : t -> id -> Unix.file_descr -> Msghdr.t -> Sketch.ptr -> bool = "ocaml_uring_submit_send_msg" [@@noalloc]
335335 external submit_recv_msg : t -> id -> Unix.file_descr -> Msghdr.t -> Sketch.ptr -> bool = "ocaml_uring_submit_recv_msg" [@@noalloc]
336336+ external submit_fsync : t -> id -> Unix.file_descr -> int64 -> int -> bool = "ocaml_uring_submit_fsync" [@@noalloc]
337337+ external submit_fdatasync : t -> id -> Unix.file_descr -> int64 -> int -> bool = "ocaml_uring_submit_fdatasync" [@@noalloc]
336338337339 type cqe_option = private
338340 | Cqe_none
···554556 with_id_full t (fun id ->
555557 let iovec = Sketch.Iovec.alloc t.sketch buffers in
556558 Uring.submit_recv_msg t.uring id fd msghdr iovec) user_data ~extra_data:msghdr
559559+560560+let fsync t ?(off=0L) ?(len=0) fd user_data =
561561+ with_id t (fun id -> Uring.submit_fsync t.uring id fd off len) user_data
562562+563563+let fdatasync t ?(off=0L) ?(len=0) fd user_data =
564564+ with_id t (fun id -> Uring.submit_fdatasync t.uring id fd off len) user_data
557565558566let cancel t job user_data =
559567 ignore (Heap.ptr job : Uring.id); (* Check it's still valid *)
+10
vendor/opam/uring/lib/uring/uring.mli
···607607(** [recv_msg t fd msghdr d] will submit a [recvmsg(2)] request. If the request is
608608 successful then the [msghdr] will contain the sender address and the data received. *)
609609610610+val fsync : 'a t -> ?off:int64 -> ?len:int -> Unix.file_descr -> 'a -> 'a job option
611611+(** [fsync t ?off ?len fd d] will submit an [fsync(2)] request, with the optional
612612+ offset [off] and length [len] specifying the subset of the file to perform the
613613+ synchronisation on. *)
614614+615615+val fdatasync : 'a t -> ?off:int64 -> ?len:int -> Unix.file_descr -> 'a -> 'a job option
616616+(** [fdatasync t ?off ?len fd d] will submit an [fdatasync(2)] request, with the optional
617617+ offset [off] and length [len] specifying the subset of the file to perform the
618618+ synchronisation on. *)
619619+610620(** {2 Probing}
611621612622 You can check which operations are supported by the running kernel. *)