sysutils/lsof Author Question (for CLANG)....
kaduk at MIT.EDU
Wed Nov 7 15:32:28 UTC 2012
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
> 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
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.
More information about the freebsd-current