Date: Thu, 19 Oct 2023 10:45:40 +0000 From: YU SHANG <yushang@outlook.com> To: "freebsd-drivers@freebsd.org" <freebsd-drivers@freebsd.org> Subject: about devfs_free Message-ID: <SN4PR17MB586246512E0B8E988C77DDC2A3D4A@SN4PR17MB5862.namprd17.prod.outlook.com>
next in thread | raw e-mail | index | archive | help
--_000_SN4PR17MB586246512E0B8E988C77DDC2A3D4ASN4PR17MB5862namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi guys, I am a newbie in FreeBSD driver development. I found that devfs_free(sys\fs= \devfs\devfs_devs.c) does not detach the cdev_priv from the cdevp_list befo= re free it. cdev_priv is inserted into cdevp_list in devfs_create(sys\fs\de= vfs\devfs_devs.c). What I have missed? Many thank. --_000_SN4PR17MB586246512E0B8E988C77DDC2A3D4ASN4PR17MB5862namp_ Content-Type: text/html; charset="us-ascii" 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=3Dus-ascii"= > <meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:"Microsoft YaHei"; panose-1:2 11 5 3 2 2 4 2 2 4;} @font-face {font-family:"Microsoft YaHei";} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; text-align:justify; text-justify:inter-ideograph; font-size:10.5pt; font-family:DengXian;} span.DefaultFontHxMailStyle {mso-style-name:"Default Font HxMail Style"; font-family:"\5FAE \8F6F \96C5 \9ED1 ",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">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">I am a newbie in FreeBSD driver developm= ent. I found that devfs_free(sys\fs\devfs\devfs_devs.c) does not detach the= cdev_priv from the cdevp_list before free it. cdev_priv is inserted into cdevp_list in devfs_create(sys\fs\devfs\dev= fs_devs.c). What I have missed? Many thank.<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> </div> </body> </html> --_000_SN4PR17MB586246512E0B8E988C77DDC2A3D4ASN4PR17MB5862namp_--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?SN4PR17MB586246512E0B8E988C77DDC2A3D4A>