Article View: muc.lists.netbsd.source-changes
Article #9Re: CVS commit: src/sys/dev/usb
From: Jason Thorpe
Date: Fri, 23 Oct 2026 12:53
Date: Fri, 23 Oct 2026 12:53
111 lines
10668 bytes
10668 bytes
--Apple-Mail=_30471891-7FCA-4905-B028-C4986130A923 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Oct 22, 2026, at 7:23=E2=80=AFPM, Taylor R Campbell = <riastradh@netbsd.org> wrote: >=20 > I think this change may not be correct. I don't think pool_cache_get > respects PR_ZERO. Perhaps we should add an assertion about this and > audit the system for it (or make it work by judiciously adding a > memset if PR_ZERO is passed). pool_cache_get() is intended to return constructed objects. I guess = making it support PR_ZERO is OK so long as the cache doesn=E2=80=99t = specify a constructor function, and should blow up on incompatible = arguments if it does have one. -- thorpej --Apple-Mail=_30471891-7FCA-4905-B028-C4986130A923 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" = content=3D"text/html; charset=3Dutf-8"></head><body = style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; = line-break: after-white-space;"><br><div><blockquote type=3D"cite"><div>On= Oct 22, 2026, at 7:23=E2=80=AFPM, Taylor R Campbell = <riastradh@netbsd.org> wrote:</div><br = class=3D"Apple-interchange-newline"><div><meta charset=3D"UTF-8"><span = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline !important;">I think this change may not be correct. = I don't think pool_cache_get</span><br style=3D"caret-color: = rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: = normal; font-variant-caps: normal; font-weight: 400; letter-spacing: = normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration-line: none; = text-decoration-thickness: auto; text-decoration-style: solid;"><span = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline !important;">respects PR_ZERO. Perhaps we should = add an assertion about this and</span><br style=3D"caret-color: rgb(0, = 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = orphans: 2; text-align: start; text-indent: 0px; text-transform: none; = white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration-line: none; = text-decoration-thickness: auto; text-decoration-style: solid;"><span = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline !important;">audit the system for it (or make it work by = judiciously adding a</span><br style=3D"caret-color: rgb(0, 0, 0); = font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = orphans: 2; text-align: start; text-indent: 0px; text-transform: none; = white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration-line: none; = text-decoration-thickness: auto; text-decoration-style: solid;"><span = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline !important;">memset if PR_ZERO is passed).</span><br = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration-line: none; = text-decoration-thickness: auto; text-decoration-style: = solid;"></div></blockquote><br></div><div>pool_cache_get() is intended = to return constructed objects. I guess making it support PR_ZERO = is OK so long as the cache doesn=E2=80=99t specify a constructor = function, and should blow up on incompatible arguments if it does have = one.</div><br><div> <span class=3D"Apple-style-span" style=3D"border-collapse: separate; = color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant: normal; font-weight: normal; = letter-spacing: normal; line-height: normal; orphans: 2; text-align: = auto; text-indent: 0px; text-transform: none; white-space: normal; = widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; = -webkit-border-vertical-spacing: 0px; = -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: = auto; -webkit-text-stroke-width: 0px; "><div style=3D"word-wrap: = break-word; -webkit-nbsp-mode: space; -webkit-line-break: = after-white-space; ">-- thorpej</div></span> </div> <br></body></html>= --Apple-Mail=_30471891-7FCA-4905-B028-C4986130A923-- -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<6BE76039-D038-4D33-9E1C-84A5385FD48F@me.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<20261023022326.D40FA84E80@mail.netbsd.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail From: Jason Thorpe <thorpej@me.com> Newsgroups: muc.lists.netbsd.source-changes Subject: Re: CVS commit: src/sys/dev/usb Date: Fri, 23 Oct 2026 05:53:38 -0700 Organization: Newsgate at muc.de e.V. Sender: source-changes-d-owner@NetBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <6BE76039-D038-4D33-9E1C-84A5385FD48F@me.com> References: <20261023022326.D40FA84E80@mail.netbsd.org> MIME-Version: 1.0 (Mac OS X Mail 16.0 \(3864.500.181\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_30471891-7FCA-4905-B028-C4986130A923" Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="60787"; mail-complaints-to="news-admin@muc.de" Authentication-Results: mail.netbsd.org (amavisd-new); dkim=pass (2048-bit key) header.d=me.com X-ICL-RepId: 01a168d3-2b74-70ed-bbaa-8574ba9f8236 X-ICL-Out-Info: HUtFAUMEWwJACUgATUQeDx5WFlZNRAJCTQhPHV8EXxxBCUgdXA5SEhVdRUcFWBlCFVM4XggZCF0dGR5XUFoOHBNWFRMfVFYHUFEdXwIKBEcEWxdGA1NFQwMXEVABWB5WXloXXk1HH0BNYkkBWhlbHEAXSm5NUw8PHVxWUAJaS18ZXUUPW3UuBUYJSwpAc1sBSBRMd14ERgs1CDseVQMqB0MBTXUpA1N0MFQdHQ5YBgxQTQFDCAoCURxWDVc= Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1792760034; x=1824296034; bh=l1pg984emmjoTzG6NDfgkmDW5bfLnzOSfZYVY4ZiJTY=; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:To:x-icloud-hme; b=0rB+WAzGq9sguradwNvv7yfAXWEKJj1eF86u+aU1czIjxwANlcCP75xP6GCYdG4uYtJ432no0g73/3E4TKIHFQ6z9T6JcLR07wamrXYKI+BllyJgFXGw+j1GBi745kkZvMChuRhTUU/RiqAnDgXoVvsCvVgwT7yKweRIBAvsFOOjJOyvRdfi6e8NkHNxBg3T+omjnFOf4zUOOThuVligxpsDCyldD0VKieqqyywdoMg7TNL29M6OhasEtEmAyqdDB5G2Rby4sPGBPL6iBRnBrOAAURD9uJxmRI1Dr819kp/fqio1lm75z8HETI6qpIMeXoFt4A2UIBxuN9rLdjTnLQ== In-Reply-To: <20261023022326.D40FA84E80@mail.netbsd.org> X-Proofpoint-ORIG-GUID: EOkMYlQfvwAoulzcTyt31WbKUb7lb2Tn X-Proofpoint-GUID: EOkMYlQfvwAoulzcTyt31WbKUb7lb2Tn X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIzMDA1MCBTYWx0ZWRfX+LWGQvhMZGlg bjD/3K7Bd+b2cH+QjkuaTTkTn9McStVBnZPoN8i3FU+GDP8alAeIhTVhTv3+PSqPu/A47U30grY BbDaAhttu6TMztI9utKwfZ72BSTPggPO+OxoTaVq1ZYsF00VKMWo/Xb9ENaRMAFPYxR7tB8jtEF BXOgJ2oIHbeLHEjPAj/g9/AFxJbl4fVPHLh9GPj7ZB6/TA0hfv0rZJsurlaSdT5Fhy/7xLjoC4/ vdJtYdnqkWDeZAH87fSnK4v3JO3YU/rchhyTUGAwJ6d2ciM6Hc90n1aQrNr3rqNXlYlmcuVi0n+ DHa9lbVVJbd1O6Op7+BfNY0QUb+bVrQEbSlIIiYNLW+AXsUCIWPvPwK56GTw98= X-Authority-Info-Out: v=2.4 cv=GoxPO01C c=1 sm=1 tr=0 ts=6adb58e0 cx=c_apl:c_pps:t_out a=bsP7O+dXZ5uKcj+dsLqiMw==:117 a=bsP7O+dXZ5uKcj+dsLqiMw==:17 a=660iZSQnnn4A:10 a=x7bEGLp0ZPQA:10 a=hNn9FkxD5tsA:10 a=VkNPw1HP01LnGYTKEx00:22 a=_ctWjzdLAAAA:8 a=RA3Eq98hrX5iEaBolDAA:9 a=QEXdDO2ut3YA:10 a=vXPKW4092hT9p-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