getting mount points in kernel

Ryan Sommers ryans at gamersimpact.com
Fri Jan 14 10:10:44 PST 2005


Siddharth Aggarwal said:
>
> 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?
>
> TIA,
> Sid.

>From userland: man getmntinfo, man getfsstat
>From kernel land: I'd have a look at the code for the syscall.

-- 
Ryan Sommers
ryans at gamersimpact.com



More information about the freebsd-hackers mailing list