package uring

  1. Overview
  2. Docs

Module Uring.StatxSource

Sourcetype t

A statx struct.

Sourcetype kind = [
  1. | `Unknown
  2. | `Fifo
  3. | `Character_special
  4. | `Directory
  5. | `Block_device
  6. | `Regular_file
  7. | `Socket
]
Sourceval pp_kind : kind Fmt.t

pp_kind kind formats a human readable kind

Sourceval create : unit -> t

Use create to make a statx result buffer to pass to statx.

Sourcemodule Flags : sig ... end
Sourcemodule Attr : sig ... end
Sourcemodule Mask : sig ... end

The mask flags are used to tell the kernel which fields the statx invocation is interested in. You may wish to use Mask.check on the returned Statx.t to verify the field has actually been filled in with a sensible value first. In general, the kernel never refused values specified in the mask, but may choose to not set the mask in the returned buffer from statx.

Sourceval blksize : t -> Int64.t
Sourceval attributes : t -> Int64.t
Sourceval uid : t -> Int64.t
Sourceval gid : t -> Int64.t
Sourceval ino : t -> Int64.t
Sourceval size : t -> Int64.t
Sourceval blocks : t -> Int64.t
Sourceval attributes_mask : t -> Int64.t
Sourceval rdev : t -> Int64.t
Sourceval dev : t -> Int64.t
Sourceval mask : t -> Int64.t
Sourceval mnt_id : t -> Int64.t
Sourceval dio_mem_align : t -> Int64.t
Sourceval dio_offset_align : t -> Int64.t
Sourceval atime_sec : t -> int64
Sourceval btime_sec : t -> int64
Sourceval ctime_sec : t -> int64
Sourceval mtime_sec : t -> int64
Sourceval atime_nsec : t -> int
Sourceval btime_nsec : t -> int
Sourceval ctime_nsec : t -> int
Sourceval mtime_nsec : t -> int
Sourceval mode : t -> int
Sourceval perm : t -> int
Sourceval kind : t -> kind
OCaml

Innovation. Community. Security.