···332332 external submit_unlinkat : t -> id -> Unix.file_descr -> Sketch.ptr -> bool -> bool = "ocaml_uring_submit_unlinkat" [@@noalloc]
333333 external submit_send_msg : t -> id -> Unix.file_descr -> Msghdr.t -> Sketch.ptr -> bool = "ocaml_uring_submit_send_msg" [@@noalloc]
334334 external submit_recv_msg : t -> id -> Unix.file_descr -> Msghdr.t -> Sketch.ptr -> bool = "ocaml_uring_submit_recv_msg" [@@noalloc]
335335+ external submit_fsync : t -> id -> Unix.file_descr -> int64 -> int -> bool = "ocaml_uring_submit_fsync" [@@noalloc]
336336+ external submit_fdatasync : t -> id -> Unix.file_descr -> int64 -> int -> bool = "ocaml_uring_submit_fdatasync" [@@noalloc]
335337336338 type cqe_option = private
337339 | Cqe_none
···540542 with_id_full t (fun id ->
541543 let iovec = Sketch.Iovec.alloc t.sketch buffers in
542544 Uring.submit_recv_msg t.uring id fd msghdr iovec) user_data ~extra_data:msghdr
545545+546546+let fsync t ?(off=0L) ?(len=0) fd user_data =
547547+ with_id t (fun id -> Uring.submit_fsync t.uring id fd off len) user_data
548548+549549+let fdatasync t ?(off=0L) ?(len=0) fd user_data =
550550+ with_id t (fun id -> Uring.submit_fdatasync t.uring id fd off len) user_data
543551544552let cancel t job user_data =
545553 ignore (Heap.ptr job : Uring.id); (* Check it's still valid *)
+10
vendor/opam/uring/lib/uring/uring.mli
···403403(** [recv_msg t fd msghdr d] will submit a [recvmsg(2)] request. If the request is
404404 successful then the [msghdr] will contain the sender address and the data received. *)
405405406406+val fsync : 'a t -> ?off:int64 -> ?len:int -> Unix.file_descr -> 'a -> 'a job option
407407+(** [fsync t ?off ?len fd d] will submit an [fsync(2)] request, with the optional
408408+ offset [off] and length [len] specifying the subset of the file to perform the
409409+ synchronisation on. *)
410410+411411+val fdatasync : 'a t -> ?off:int64 -> ?len:int -> Unix.file_descr -> 'a -> 'a job option
412412+(** [fdatasync t ?off ?len fd d] will submit an [fdatasync(2)] request, with the optional
413413+ offset [off] and length [len] specifying the subset of the file to perform the
414414+ synchronisation on. *)
415415+406416(** {2 Probing}
407417408418 You can check which operations are supported by the running kernel. *)