From owner-freebsd-current@FreeBSD.ORG Wed Nov 7 15:31:43 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 362D7B83 for ; Wed, 7 Nov 2012 15:31:43 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id A665E8FC08 for ; Wed, 7 Nov 2012 15:31:42 +0000 (UTC) Received: from tom.home (localhost [127.0.0.1]) by kib.kiev.ua (8.14.5/8.14.5) with ESMTP id qA7FVa9p066867; Wed, 7 Nov 2012 17:31:36 +0200 (EET) (envelope-from kostikbel@gmail.com) X-DKIM: OpenDKIM Filter v2.5.2 kib.kiev.ua qA7FVa9p066867 Received: (from kostik@localhost) by tom.home (8.14.5/8.14.5/Submit) id qA7FVafJ066866; Wed, 7 Nov 2012 17:31:36 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 7 Nov 2012 17:31:35 +0200 From: Konstantin Belousov To: Larry Rosenman Subject: Re: sysutils/lsof Author Question (for CLANG).... Message-ID: <20121107153135.GS73505@kib.kiev.ua> References: <5d4c4abe37bd6fffd0c206c1b7b68ce1@webmail.lerctr.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="C64opeEuicNVb5KK" Content-Disposition: inline In-Reply-To: <5d4c4abe37bd6fffd0c206c1b7b68ce1@webmail.lerctr.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=0.2 required=5.0 tests=ALL_TRUSTED, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2012 15:31:43 -0000 --C64opeEuicNVb5KK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 07, 2012 at 09:27:32AM -0600, 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? >=20 > 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. >=20 > Perhaps someone on the freebsd-current list knows. >=20 > Can someone help me help him? >=20 It is located in the autogenerated file vnode_if.c, which is produced in the kernel build directory by the tools/vnode_if.awk script from the kern/vnode_if.src declaration. --C64opeEuicNVb5KK Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlCaftcACgkQC3+MBN1Mb4gVcgCaAkMPd58zb2IazCxZ54A819A+ uUAAnjZuG2IZ6KT4geWX65nw5AGWQaLg =6eqK -----END PGP SIGNATURE----- --C64opeEuicNVb5KK--