From owner-freebsd-fs Wed Dec 25 16:18:22 2002 Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7421237B401 for ; Wed, 25 Dec 2002 16:18:21 -0800 (PST) Received: from pollux.cse.buffalo.edu (pollux.cse.Buffalo.EDU [128.205.35.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 838FD43EA9 for ; Wed, 25 Dec 2002 16:18:20 -0800 (PST) (envelope-from tgogoi@cse.Buffalo.EDU) Received: (from tgogoi@localhost) by pollux.cse.buffalo.edu (8.11.6+Sun/8.10.1) id gBQ0IE701471; Wed, 25 Dec 2002 19:18:14 -0500 (EST) Date: Wed, 25 Dec 2002 19:18:14 -0500 (EST) From: Tony Gogoi To: Subject: Pointer to proc structure In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I've 2 questions... 1) how do I join this newsgroup ? I've never joined a newgroup before so have no clue... 2) Lets say there's a function "Func" in the BSD kernel....Is there any way I could get a pointer to the proc structure to which "Func" belongs... void Func() { struct proc *p; p = ???????? } I mean, how could I get "p" to point to the current proc structure.... The reason i asked this is NDINIT() requires the proc structure to be passed as an argument, and only after that the vnode can be accessed. If there is a way in BSD to get the vnode just by giving the pathname as an argument, that would be very helpful. Thank You tony To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message