Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Dec 2002 19:18:14 -0500 (EST)
From:      Tony Gogoi <tgogoi@cse.Buffalo.EDU>
To:        <freebsd-fs@freebsd.org>
Subject:   Pointer to proc structure
Message-ID:  <Pine.SOL.4.30.0212251909260.1424-100000@pollux.cse.buffalo.edu>
In-Reply-To: <Pine.SOL.4.30.0212231823330.24955-100000@pollux.cse.buffalo.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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