回复: how to include vnode.h?

From: YU SHANG <yushang_at_outlook.com>
Date: Thu, 19 Oct 2023 04:04:13 UTC
Cool. Thanks!

从 Windows 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>发送

发件人: Warner Losh<mailto:imp@bsdimp.com>
发送时间: 2023年10月19日 11:56
收件人: YU SHANG<mailto:yushang@outlook.com>
抄送: freebsd-drivers@freebsd.org<mailto:freebsd-drivers@freebsd.org>
主题: Re: how to include vnode.h?


On Wed, Oct 18, 2023, 9:48 PM YU SHANG <yushang@outlook.com<mailto:yushang@outlook.com>> wrote:
Hi guys,
I am exercising a FreeBSD driver which is started by the official skeleton (https://docs.freebsd.org/en/books/arch-handbook/driverbasics/). 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

Warner


从 Windows 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>发送