Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jan 2005 10:45:45 -0600 (CST)
From:      Zera William Holladay <zholla1@uic.edu>
To:        Siddharth Aggarwal <saggarwa@cs.utah.edu>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: getting mount points in kernel
Message-ID:  <Pine.GSO.4.58.0501141042140.14120@icarus.cc.uic.edu>
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
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



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