From owner-freebsd-fs@FreeBSD.ORG Tue Dec 23 11:41:13 2008 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E12071065673 for ; Tue, 23 Dec 2008 11:41:13 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id BD6838FC1D for ; Tue, 23 Dec 2008 11:41:13 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTP id 5561B46B64; Tue, 23 Dec 2008 06:41:13 -0500 (EST) Date: Tue, 23 Dec 2008 11:41:13 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Gerry Weaver In-Reply-To: <20081222194420.98abb8bb@mail01.compvia.com> Message-ID: References: <20081222194420.98abb8bb@mail01.compvia.com> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-fs@freebsd.org Subject: Re: Headers files included by vnode.h X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Dec 2008 11:41:14 -0000 On Mon, 22 Dec 2008, Gerry Weaver wrote: > Because these files are dynamically generated it makes no sense to > install them. There are quite a few files like these which are used > during the kernel generation process to dynamically create include > files. This allows greater flexibility. > > Thanks Gary. I appreciate your help. The usual question here is "what are you trying to do?". Normally we dynamically generate the implementations of the VOP interfaces when the kernel (or a module built independently from the kernel) depends on them. If you're creating a kernel module, you can add a dependency on vnode_if.h, which will cause the kernel module build framework to generate local copies of the file in your build directory during the build, as seen in the Coda module: # $FreeBSD: src/sys/modules/coda/Makefile,v 1.17.2.1 2008/03/14 17:12:40 rwatson Exp $ .PATH: ${.CURDIR}/../../fs/coda KMOD= coda SRCS= vnode_if.h \ coda_fbsd.c coda_psdev.c coda_subr.c coda_venus.c coda_vfsops.c \ coda_vnops.c opt_coda.h .include If it's for the purposes of debugging a kernel, you should be able to find the generated copies of the files in the build directory for the kernel. Robert N M Watson Computer Laboratory University of Cambridge