Date: Wed, 18 Oct 2023 21:56:08 -0600 From: Warner Losh <imp@bsdimp.com> To: YU SHANG <yushang@outlook.com> Cc: freebsd-drivers@freebsd.org Subject: Re: how to include vnode.h? Message-ID: <CANCZdfpsccgxHOsZgQfgMKdXdKQ0Ppi7gE1%2BSsYPvkHvBK6vrA@mail.gmail.com> In-Reply-To: <SN4PR17MB5862F06C43D3FCD90B5F81C1A3D4A@SN4PR17MB5862.namprd17.prod.outlook.com> References: <SN4PR17MB5862F06C43D3FCD90B5F81C1A3D4A@SN4PR17MB5862.namprd17.prod.outlook.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000000fade6060809bdd7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Oct 18, 2023, 9:48 PM YU SHANG <yushang@outlook.com> wrote: > Hi guys, > > I am exercising a FreeBSD driver which is started by the official skeleto= n > (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 generat= ed > by the sys/tools/vnode_if.awk. It seems that this script is not invoked b= y > the build system. Any suggestion? Many thanks. > You need to include vnode_if.h in SRCS in your Makefile Warner > > =E4=BB=8E Windows =E7=89=88=E9=82=AE=E4=BB=B6 <https://go.microsoft.com/f= wlink/?LinkId=3D550986>=E5=8F=91=E9=80=81 > > > --0000000000000fade6060809bdd7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><br><br><div class=3D"gmail_quote" dir=3D"auto"><div dir= =3D"ltr" class=3D"gmail_attr">On Wed, Oct 18, 2023, 9:48 PM YU SHANG <<a= href=3D"mailto:yushang@outlook.com">yushang@outlook.com</a>> wrote:<br>= </div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-l= eft:1px #ccc solid;padding-left:1ex"> <div lang=3D"ZH-CN" link=3D"blue" vlink=3D"#954F72" style=3D"word-wrap:brea= k-word"> <div class=3D"m_-5252896483198049258WordSection1"> <p class=3D"MsoNormal"><span class=3D"m_-5252896483198049258DefaultFontHxMa= ilStyle"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-family:"A= rial",sans-serif">Hi guys,<u></u><u></u></span></span></p> <p class=3D"MsoNormal"><span class=3D"m_-5252896483198049258DefaultFontHxMa= ilStyle"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-family:"A= rial",sans-serif">I am exercising a FreeBSD driver which is started by= the official skeleton (<a href=3D"https://docs.freebsd.org/en/books/arch-h= andbook/driverbasics/" target=3D"_blank" rel=3D"noreferrer">https://docs.fr= eebsd.org/en/books/arch-handbook/driverbasics/</a>). When I add an include of #include <sys/vnode.h>, the kld failed to c= ompile, complaining that can not find the vnode_if.h. I know this file is g= enerated by the sys/tools/vnode_if.awk. It seems that this script is not in= voked by the build system. Any suggestion? Many thanks.</span></span></p></div></div></blockquote></div><div dir=3D"a= uto">You need to include vnode_if.h in SRCS in your Makefile=C2=A0</div><di= v dir=3D"auto"><br></div><div dir=3D"auto">Warner=C2=A0</div><div dir=3D"au= to"><br></div><div class=3D"gmail_quote" dir=3D"auto"><blockquote class=3D"= gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-= left:1ex"><div lang=3D"ZH-CN" link=3D"blue" vlink=3D"#954F72" style=3D"word= -wrap:break-word"><div class=3D"m_-5252896483198049258WordSection1"> <p class=3D"MsoNormal"><span class=3D"m_-5252896483198049258DefaultFontHxMa= ilStyle"><span lang=3D"EN-US" style=3D"font-size:11.0pt"><u></u>=C2=A0<u></= u></span></span></p> <p class=3D"MsoNormal">=E4=BB=8E<span lang=3D"EN-US"> Windows </span>=E7=89= =88<span lang=3D"EN-US"><a href=3D"https://go.microsoft.com/fwlink/?LinkId= =3D550986" target=3D"_blank" rel=3D"noreferrer"><span lang=3D"EN-US"><span = lang=3D"EN-US">=E9=82=AE=E4=BB=B6</span></span></a></span>=E5=8F=91=E9=80= =81</p> <p class=3D"MsoNormal"><span class=3D"m_-5252896483198049258DefaultFontHxMa= ilStyle"><span lang=3D"EN-US" style=3D"font-size:11.0pt"><u></u>=C2=A0<u></= u></span></span></p> </div> </div> </blockquote></div></div> --0000000000000fade6060809bdd7--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpsccgxHOsZgQfgMKdXdKQ0Ppi7gE1%2BSsYPvkHvBK6vrA>