回复: how to include vnode.h?
- In reply to: Warner Losh : "Re: how to include vnode.h?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
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>发送