listmount(2) System Calls Manual listmount(2) listmount - (libc -lc) #include /* struct mnt_id_req */ #include int syscall(size_t n; SYS_listmount, struct mnt_id_req *req, uint64_t mnt_ids[n], size_t n, unsigned long flags); #include struct mnt_id_req { __u32 size; /* sizeof(struct mnt_id_req) */ __u64 mnt_id; /* */ __u64 param; /* */ }; : glibc listmount() syscall(2). CAP_SYS_ADMIN . req.mnt_id. statmount(2) . mnt_id_req req.size struct mnt_id_req sizeof(struct mnt_id_req). req.mnt_id LSMT_ROOT statx(2) STATX_MNT_ID_UNIQUE listmount(2). req.param . listmount(2). . mnt_ids 0 . -1 errno . EPERM CAP_SYS_ADMIN . EFAULT req mnt_ids . EINVAL flags. EINVAL req . E2BIG req . ENOENT req.mnt_id . ENOMEM ( ). . statmount(2), statx(2) 3 . . : . 6.18 6 2025 listmount(2)