Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Nov 2012 10:32:23 -0500 (EST)
From:      Benjamin Kaduk <kaduk@MIT.EDU>
To:        Larry Rosenman <ler@lerctr.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: sysutils/lsof Author Question (for CLANG)....
Message-ID:  <alpine.GSO.1.10.1211071030050.2164@multics.mit.edu>
In-Reply-To: <5d4c4abe37bd6fffd0c206c1b7b68ce1@webmail.lerctr.org>
References:  <5d4c4abe37bd6fffd0c206c1b7b68ce1@webmail.lerctr.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 7 Nov 2012, Larry Rosenman wrote:

> Vic Abell (the lsof author) asked me the following:
> In adjusting for clang I have come up with an unanswered
> question.  Where is the VOP_UNLOCK() macro defined?
>
> I've done a full search of all the files in /usr/src/sys
> and can't find its definition, but I find many, many
> uses.
>
> Perhaps someone on the freebsd-current list knows.
>
> Can someone help me help him?

It is defined in vnode_if.h, generated as part of the kernel build 
process.
The source file is sys/kern/vnode_if.src, and look at 
sys/tools/vnode_if.awk and sys/conf/kmod.mk for how it is used.

Once again, attempting to use kernel internals outside of the supported 
interfaces is just asking for trouble; I do not understand why this 
message is not sinking in over the course of your previous mails to these 
lists, so I will not try to belabor it further.

-Ben Kaduk



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.GSO.1.10.1211071030050.2164>