From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 14 18:10:44 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A885A16A4CE for ; Fri, 14 Jan 2005 18:10:44 +0000 (GMT) Received: from mailserv1.neuroflux.com (ns2.neuroflux.com [204.228.228.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AF6A43D3F for ; Fri, 14 Jan 2005 18:10:44 +0000 (GMT) (envelope-from ryans@gamersimpact.com) Received: (qmail 77103 invoked by uid 89); 14 Jan 2005 18:09:13 -0000 Received: from unknown (HELO www2.neuroflux.com) (127.0.0.1) by localhost with SMTP; 14 Jan 2005 18:09:13 -0000 Received: from 208.4.77.66 (SquirrelMail authenticated user ryans@gamersimpact.com); by www2.neuroflux.com with HTTP; Fri, 14 Jan 2005 11:09:13 -0700 (MST) Message-ID: <49415.208.4.77.66.1105726153.squirrel@208.4.77.66> In-Reply-To: References: Date: Fri, 14 Jan 2005 11:09:13 -0700 (MST) From: "Ryan Sommers" To: "Siddharth Aggarwal" User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal cc: freebsd-hackers@freebsd.org Subject: Re: getting mount points in kernel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2005 18:10:44 -0000 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