On Tue, Dec 05, 2023 at 05:27:58PM +0100, Miklos Szeredi wrote: > Attaching the proposed man page for listing mounts (based on the new > listmount() syscall). > > The raw interface is: > > syscall(__NR_listmount, const struct mnt_id_req __user *, req, > u64 __user *, buf, size_t, bufsize, unsigned int, flags); > > The proposed libc API is. > > struct listmount *listmount_start(uint64_t mnt_id, unsigned int flags); > uint64_t listmount_next(struct listmount *lm); > void listmount_end(struct listmount *lm); What about: getmountlist() nextmountlist() freemountlist() For me, _start and _end() sounds strange. For example, We already use get+free for getaddrinfo(). Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com