Re: how to include vnode.h?

From: Warner Losh <>
Date: Thu, 19 Oct 2023 03:56:08 UTC
On Wed, Oct 18, 2023, 9:48 PM YU SHANG <> wrote:

> Hi guys,
> I am exercising a FreeBSD driver which is started by the official skeleton
> ( When I
> add an include of #include <sys/vnode.h>, the kld failed to compile,
> complaining that can not find the vnode_if.h. I know this file is generated
> by the sys/tools/vnode_if.awk. It seems that this script is not invoked by
> the build system. Any suggestion? Many thanks.
You need to include vnode_if.h in SRCS in your Makefile


> 从 Windows 版邮件 <>发送