statmount
Implemented in Antinomie 0.7.0 · Syscall list
Synopsis
Section titled “Synopsis”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.
Description
Section titled “Description”Reads information about a mount, selected by its unique mount id, into a buffer.
Arguments
Section titled “Arguments”| 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. |
Return value
Section titled “Return value”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.
Common errors
Section titled “Common errors”| 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. |
Man page
Section titled “Man page”Captured by Antinomie
Section titled “Captured by Antinomie”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).
Arguments
Section titled “Arguments”| 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 |
Filter fields
Section titled “Filter fields”- Result:
ret,syscall.errno,syscall.success,syscall.duration_ns. - Argument words:
args.req(arg0),args.buf(arg1),args.bufsize(arg2),args.flags(arg3);args.0toargs.5by position. - Structure
mnt_id_reqbehindreq(arg0):args.req.<member>formnt_id,mnt_ns_fd,mnt_ns_id,param,size. - Structure
statmountbehindbuf(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.