From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 17 16:36:17 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id F011F16A4CE; Thu, 17 Jun 2004 16:36:16 +0000 (GMT) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.12.11/8.12.11) with ESMTP id i5HGaGSO018606; Thu, 17 Jun 2004 12:36:16 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.12.11/8.12.11/Submit) id i5HGaFFn018605; Thu, 17 Jun 2004 12:36:15 -0400 (EDT) (envelope-from green) Date: Thu, 17 Jun 2004 12:36:14 -0400 From: Brian Fundakowski Feldman To: ravi Message-ID: <20040617163614.GE15918@green.homeunix.org> References: <1087466326.5072.5.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1087466326.5072.5.camel@localhost.localdomain> User-Agent: Mutt/1.5.6i cc: hackers@freebsd.org Subject: Re: Regarding procfs in freeBSd 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: Thu, 17 Jun 2004 16:36:17 -0000 On Thu, Jun 17, 2004 at 03:28:47PM +0530, ravi wrote: > Hi, > How to get a pointer to pfs_info structure which points to the /proc > directory ? > > I mean , I want to create a proc entry under /proc . > But for this I need to pass an argument struct pfs_info *pi, which > contains a member pi_root which inturn points to the /proc's pfs_node > > > How to get this pi_root from pfs_info structure ? > Is there any global variable which points to /proc' pfs_node .? > > > That is .. I want to create my own proc entry under /proc . How to do > that ? Take a look at src/sys/compat/linprocfs; I think it has everything you are looking for. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\