[RFC] proposed libc interface and man page for listmount
Miklos Szeredi
miklos@szeredi.hu
Wed Dec 6 09:40:46 GMT 2023
On Tue, 5 Dec 2023 at 19:26, Karel Zak <kzak@redhat.com> wrote:
>
> 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().
Fine by me. Just wanted to get the general scheme out for comment.
Thanks,
Miklos
More information about the Libc-alpha
mailing list