From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 17 09:53:27 2004 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 6AEAD16A4CE for ; Thu, 17 Jun 2004 09:53:27 +0000 (GMT) Received: from inetmg01.sony.com.sg (inetmg01.sony.com.sg [202.42.154.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id A48D143D2F for ; Thu, 17 Jun 2004 09:53:25 +0000 (GMT) (envelope-from ravi.nanjundappa@ap.sony.com) Received: from avgw02b.sony.com.sg ([43.68.8.23]) by inetmg01.sony.com.sg (8.11.7+Sun/8.11.6) with SMTP id i5H9viI02000 for ; Thu, 17 Jun 2004 17:57:45 +0800 (SGT) Received: from unknown(43.68.8.1) by avgw02b.sony.com.sg via csmap id b1b4fd62_c044_11d8_9fb8_0002b3cb4edc_29746; Thu, 17 Jun 2004 17:57:07 +0800 (SGT) Received: from sapsgssdibh01.ap.sony.com (bh01.ap.sony.com [43.68.15.23]) by seagw01.sony.com.sg (8.11.6+Sun/8.11.6) with ESMTP id i5H9kME13485 for ; Thu, 17 Jun 2004 17:46:22 +0800 (SGT) Received: from sapinsardexc01.sard.in.sony.com.sg (SAPINSARDEXC01 [43.88.102.8]) by sapsgssdibh01.ap.sony.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id NCPDJ8A4; Thu, 17 Jun 2004 17:53:10 +0800 Received: from [43.88.102.67] (43.88.102.67 [43.88.102.67]) by sapinsardexc01.sard.in.sony.com.sg with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2655.55) id 262KAS6D; Thu, 17 Jun 2004 15:34:45 +0530 From: ravi To: hackers@freebsd.org Content-Type: text/plain Organization: Sony - SARD Message-Id: <1087466326.5072.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 17 Jun 2004 15:28:47 +0530 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 17 Jun 2004 11:42:53 +0000 Subject: 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 09:53:27 -0000 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 ? -- Regards, N Ravi