Article View: muc.lists.netbsd.source-changes
Article #6Re: CVS commit: src/sys/dev/usb
From: Taylor R Campbell
Date: Fri, 23 Oct 2026 15:33
Date: Fri, 23 Oct 2026 15:33
29 lines
3189 bytes
3189 bytes
> Date: Fri, 23 Oct 2026 05:53:38 -0700 > From: Jason Thorpe <thorpej@me.com> > > > On Oct 22, 2026, at 7:23 PM, Taylor R Campbell <riastradh@netbsd.org> wrote: > > > > 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't specify > a constructor function, and should blow up on incompatible arguments > if it does have one. Maybe PR_ZERO should be an option to pool_cache_init rather than to pool_cache_get? (And pool_cache_get should assert that it is _not_ set. Also pool_cache_init can assert that ctor/dtor is mutually exclusive with PR_ZERO.) Kind of unfortunate that the PR_* namespace is reused for five different purposes (pool_init, pool_get, pool_cache_init, pool_cache_get, and struct pool internal pr_flags), but at least the numbers don't collide so we could do it. -- 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:
<20261023153346.77F5884DB6@mail.netbsd.org>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:
<6BE76039-D038-4D33-9E1C-84A5385FD48F@me.com>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: Taylor R Campbell <riastradh@NetBSD.org> Newsgroups: muc.lists.netbsd.source-changes Subject: Re: CVS commit: src/sys/dev/usb Date: Fri, 23 Oct 2026 15:33:45 +0000 Organization: Newsgate at muc.de e.V. Sender: source-changes-d-owner@NetBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <20261023153346.77F5884DB6@mail.netbsd.org> References: <6BE76039-D038-4D33-9E1C-84A5385FD48F@me.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="3810"; mail-complaints-to="news-admin@muc.de" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1792769628; bh=sro32+MTv96v9jjYlH+dXkAS/fUna38MvWvn04xcOCE=; h=To:CC:In-reply-to:Subject:Date:From:List-Id:List-Unsubscribe; b=rcxqcno3L+n4dneQMmenT8KT0mgb9Oj9yzArrXJAzf9uKgxA+vJc7Jqe+V2pIHLZ6 k/ReV9GE5s7gw6wN9sJhAfC0NAoNRXLcmiDMvcNVlBjlnTAnsOuzUnlTzOcpL8J683 cExj7KS0MDsJGUet8uyU8O0A2Tg0eSbRLe32Zjv4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1792769626; bh=sro32+MTv96v9jjYlH+dXkAS/fUna38MvWvn04xcOCE=; h=To:CC:In-reply-to:Subject:Date:From; b=3CberYX6USgT0bx730lJ45X8soYg+Eq6I5TE1NWsYwDmMHglPXSy6ieP/hJlE5YLg WHLiNDpEJat1NsHEofJSLrbTy5ar//e5jRu8EvYAmpQQyMqaAdzo921JsuHPghuWt5 V1z5r3jSqrM98qNEkgLXORtGl3nb/R/lHq2bgV/Q= In-reply-to: <6BE76039-D038-4D33-9E1C-84A5385FD48F@me.com> (thorpej@me.com) Precedence: bulk X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes