Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jan 2005 11:09:13 -0700 (MST)
From:      "Ryan Sommers" <ryans@gamersimpact.com>
To:        "Siddharth Aggarwal" <saggarwa@cs.utah.edu>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: getting mount points in kernel
Message-ID:  <49415.208.4.77.66.1105726153.squirrel@208.4.77.66>
In-Reply-To: <Pine.GSO.4.50L0.0501140925510.3520-100000@faith.cs.utah.edu>
References:  <Pine.GSO.4.50L0.0501140925510.3520-100000@faith.cs.utah.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

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@gamersimpact.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49415.208.4.77.66.1105726153.squirrel>