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 tell the kernel which fields the statx invocation wants. The caller must verify the field has actually been filled in with a value before using it. The kernel never refuses 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 -> Attr.t

The attributes set on the file.

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 -> Attr.t

The set of attributes supported by the filesystem holding the file.

Sourceval rdev : t -> Int64.t
Sourceval dev : t -> Int64.t
Sourceval mask : t -> Mask.t

The set of fields the kernel actually filled in.

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