Date: Thu, 19 Oct 2023 03:48:40 +0000 From: YU SHANG <yushang@outlook.com> To: "freebsd-drivers@freebsd.org" <freebsd-drivers@freebsd.org> Subject: how to include vnode.h? Message-ID: <SN4PR17MB5862F06C43D3FCD90B5F81C1A3D4A@SN4PR17MB5862.namprd17.prod.outlook.com>
next in thread | raw e-mail | index | archive | help
--_000_SN4PR17MB5862F06C43D3FCD90B5F81C1A3D4ASN4PR17MB5862namp_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 SGkgZ3V5cywNCkkgYW0gZXhlcmNpc2luZyBhIEZyZWVCU0QgZHJpdmVyIHdoaWNoIGlzIHN0YXJ0 ZWQgYnkgdGhlIG9mZmljaWFsIHNrZWxldG9uIChodHRwczovL2RvY3MuZnJlZWJzZC5vcmcvZW4v Ym9va3MvYXJjaC1oYW5kYm9vay9kcml2ZXJiYXNpY3MvKS4gV2hlbiBJIGFkZCBhbiBpbmNsdWRl IG9mICNpbmNsdWRlIDxzeXMvdm5vZGUuaD4sIHRoZSBrbGQgZmFpbGVkIHRvIGNvbXBpbGUsIGNv bXBsYWluaW5nIHRoYXQgY2FuIG5vdCBmaW5kIHRoZSB2bm9kZV9pZi5oLiBJIGtub3cgdGhpcyBm aWxlIGlzIGdlbmVyYXRlZCBieSB0aGUgc3lzL3Rvb2xzL3Zub2RlX2lmLmF3ay4gSXQgc2VlbXMg dGhhdCB0aGlzIHNjcmlwdCBpcyBub3QgaW52b2tlZCBieSB0aGUgYnVpbGQgc3lzdGVtLiBBbnkg c3VnZ2VzdGlvbj8gTWFueSB0aGFua3MuDQoNCg0KtNMgV2luZG93cyCw5tPKvP48aHR0cHM6Ly9n by5taWNyb3NvZnQuY29tL2Z3bGluay8/TGlua0lkPTU1MDk4Nj63osvNDQoNCg== --_000_SN4PR17MB5862F06C43D3FCD90B5F81C1A3D4ASN4PR17MB5862namp_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable <html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sc= hemas-microsoft-com:office:word" xmlns:m=3D"http://schemas.microsoft.com/of= fice/2004/12/omml" xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dgb2312"> <meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:DengXian; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:"Microsoft YaHei"; panose-1:2 11 5 3 2 2 4 2 2 4;} @font-face {font-family:"Microsoft YaHei";} @font-face {font-family:DengXian; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; text-align:justify; text-justify:inter-ideograph; font-size:10.5pt; font-family:DengXian;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} span.DefaultFontHxMailStyle {mso-style-name:"Default Font HxMail Style"; font-family:"=CE=A2=C8=ED=D1=C5=BA=DA",sans-serif; color:windowtext; font-weight:normal; font-style:normal; text-decoration:none none;} .MsoChpDefault {mso-style-type:export-only;} /* Page Definitions */ @page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.WordSection1 {page:WordSection1;} --></style> </head> <body lang=3D"ZH-CN" link=3D"blue" vlink=3D"#954F72" style=3D"word-wrap:bre= ak-word"> <div class=3D"WordSection1"> <p class=3D"MsoNormal"><span class=3D"DefaultFontHxMailStyle"><span lang=3D= "EN-US" style=3D"font-size:11.0pt;font-family:"Arial",sans-serif"= >Hi guys,<o:p></o:p></span></span></p> <p class=3D"MsoNormal"><span class=3D"DefaultFontHxMailStyle"><span lang=3D= "EN-US" style=3D"font-size:11.0pt;font-family:"Arial",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-handbook/driverbasics/"= >https://docs.freebsd.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><span lang=3D"EN-US"><o:p></o:p></span></p> <p class=3D"MsoNormal"><span class=3D"DefaultFontHxMailStyle"><span lang=3D= "EN-US" style=3D"font-size:11.0pt"><o:p> </o:p></span></span></p> <p class=3D"MsoNormal"><span class=3D"DefaultFontHxMailStyle"><span lang=3D= "EN-US" style=3D"font-size:11.0pt"><o:p> </o:p></span></span></p> <p class=3D"MsoNormal">=B4=D3<span lang=3D"EN-US"> Windows </span>=B0=E6<sp= an lang=3D"EN-US"><a href=3D"https://go.microsoft.com/fwlink/?LinkId=3D5509= 86"><span lang=3D"EN-US"><span lang=3D"EN-US">=D3=CA=BC=FE</span></span></a= ></span>=B7=A2=CB=CD</p> <p class=3D"MsoNormal"><span class=3D"DefaultFontHxMailStyle"><span lang=3D= "EN-US" style=3D"font-size:11.0pt"><o:p> </o:p></span></span></p> </div> </body> </html> --_000_SN4PR17MB5862F06C43D3FCD90B5F81C1A3D4ASN4PR17MB5862namp_--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?SN4PR17MB5862F06C43D3FCD90B5F81C1A3D4A>