getting mount points in kernel

Zera William Holladay zholla1 at uic.edu
Fri Jan 14 08:45:47 PST 2005


On Fri, 14 Jan 2005, Siddharth Aggarwal wrote:

>
> Hi all,
>
> Is there a system call to get all the mount points? In a user app, I guess
> I would probably parse the /etc/fstab, but how do I do it in the kernel?

Is are you looking for "man 2 getfsstat"?  Entries in /etc/fstab are not
nessarily mounted, like a CDROM.

-zh


More information about the freebsd-hackers mailing list