proposed libc interface and man page for statmount(2)

Miklos Szeredi
2023-11-15T15:09:11Z

[-- Attachment #1: Type: text/plain, Size: 738 bytes --]

Hi,

Attaching the proposed man page for the new statmount() syscall.

It describes a libc interface that is slightly different from the raw
kernel API. The differences from the two API's are also described in
the man page.

Raw:

long syscall(SYS_statmount, const struct mnt_id_req *req,
struct statmount *buf, size_t bufsize, unsigned int flags);

Libc:

struct statmount *statmount(uint64_t mnt_id, uint64_t request_mask,
struct statmount *buf, size_t bufsize,
unsigned int flags);

I propose the libc one to allow automatically allocating the buffer if
the buf argument is NULL, similar to getcwd(3).

Comments?

Thanks,
Miklos

[-- Attachment #2: statmount.2 --]
[-- Type: application/x-troff-man, Size: 6750 bytes --]