Skip to content

statmount

Implemented in Antinomie 0.7.0 · Syscall list

long statmount(const struct mnt_id_req *req, struct statmount *buf, size_t bufsize, unsigned int flags);
Number (x86-64) 457
ABI common
Kernel entry point sys_statmount

This is the raw kernel prototype from the pinned Linux 6.12.94 schema, not the libc wrapper.

Reads information about a mount, selected by its unique mount id, into a buffer.

Name Type Meaning
req (arg0) const struct mnt_id_req * Pointer to a request structure.
buf (arg1) struct statmount * Pointer to a data buffer.
bufsize (arg2) size_t Size of the buffer in bytes.
flags (arg3) unsigned int Option flags that change the behavior of the call.

On success: 0.

In an Antinomie trace the Return column and the ret filter field show the raw kernel return value. On failure that is the negative errno, for example -2 for ENOENT, not the -1 plus errno that the libc wrapper gives. syscall.errno holds the positive errno and syscall.success is false.

Raw return Name Meaning
-2 ENOENT A path component or the named object does not exist.
-75 EOVERFLOW A value does not fit in the result type.

statmount(2) on man7.org

Coverage mark: Implemented. Every pointer argument has a capture rule in the pinned kernel patch and none of them records a “no decoder”, “address only” or “not observed” gap on any code path. Individual values can still be incomplete on a particular call; see the capture statuses.

Every call is recorded as an Entry record (the six argument words and the pointees copied at entry) and an Exit record (the return value and the pointees copied at exit).

Argument When How Recorded field key Condition
req (arg0) Entry the pointer itself, as a raw word args.0, args.raw[0]
↳ pointee Entry structure mnt_id_req, versioned by its size field arg0.mount_request always
buf (arg1) Entry the pointer itself, as a raw word args.1, args.raw[1]
↳ pointee Exit structure statmount plus its strings, length from its size word arg1.statmount result is 0 or greater
bufsize (arg2) Entry raw scalar word args.2, args.bufsize
flags (arg3) Entry raw scalar word; Syscall Trace also decodes it into flag names (unknown group), listing unknown bits separately args.3, args.flags
  • Result: ret, syscall.errno, syscall.success, syscall.duration_ns.
  • Argument words: args.req (arg0), args.buf (arg1), args.bufsize (arg2), args.flags (arg3); args.0 to args.5 by position.
  • Structure mnt_id_req behind req (arg0): args.req.<member> for mnt_id, mnt_ns_fd, mnt_ns_id, param, size.
  • Structure statmount behind buf (arg1): args.buf.<member> for __spare2[0], __spare2[10], __spare2[11], __spare2[12], __spare2[13], __spare2[14], __spare2[15], __spare2[16], __spare2[17], __spare2[18], __spare2[19], __spare2[1], __spare2[20], __spare2[21], __spare2[22], __spare2[23], __spare2[24], __spare2[25], __spare2[26], __spare2[27], __spare2[28], __spare2[29], __spare2[2], __spare2[30], __spare2[31], __spare2[32], __spare2[33], __spare2[34], __spare2[35], __spare2[36], __spare2[37], __spare2[38], __spare2[39], __spare2[3], __spare2[40], __spare2[41], __spare2[42], __spare2[43], __spare2[44], __spare2[45], __spare2[46], __spare2[47], __spare2[48], __spare2[4], __spare2[5], __spare2[6], __spare2[7], __spare2[8], and 21 more.

See Syscall Trace filter for the full syntax.

For what the capture statuses mean, see Capture statuses. For what is never recorded, see Known gaps.