From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AEA89849C; Fri, 28 Feb 2025 11:25:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740741959; cv=none; b=o6/oFrRMSRYjxl32IZ6nANktqYVUX3gNaOKKq4oy4WMUUOsEnlyNJyIAo+Mw+UC0g458nyAoph+AFP2ndphy4VBs1rkU7YdFT3pHEQZUG5+cyye0SMFUpiRbjX0/PxPVL6NZvM8/f1plcRpMu4UTTpfSmGDg5VVUSgFcE2BHBQQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740741959; c=relaxed/simple; bh=/wwwD4wAjR3ByHttIHyxvekwIMoEdhm3ZV7AI0wUpbM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=pViqQBsrfWlRzbzMj/2KiM/15+WtHmXpkMt+RPN4cMEernfVrKzORfpvOsiOUY+xsQdCmEFB9jtjuN+HOvgPs8WwynN5xrA94BWEsL6ejkQJYG1YnfygRSX2ZrGZMwLNiCi8x/VZ5f9FST40vQSGv4j5ka2qFLrCUMJg/9qOYRo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=URdM1scH; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="URdM1scH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57C59C4CED6; Fri, 28 Feb 2025 11:25:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1740741959; bh=/wwwD4wAjR3ByHttIHyxvekwIMoEdhm3ZV7AI0wUpbM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=URdM1scHahtWO3QBBpQQKXP8aa292GmHfLBTIR8Jat7LMGc9klINLL/Yqgs+YPkHx YbA/O7nEpi/eSzVtzMzNK7hyp3wi07/usM7iZE5dlx6/HNDVraVArG5nTthMqgGXnA 4jo758naNUHVJ3HuKwN8F/pRlSkDZ81a8/6k8VwRgMLmgbi4nrfIy4SffQgAjc8qHS tXUOw+7tXU3kIHr6ev25hsuqNovFDjiG18cY5KlKPlMgroUbRD2l7pYJpHyUqZdo9H mjCG1DCSRw7FK4ixmmcrwLhV9GMlnE5fuvYYXlkZGgd0MzJ/1ij7ytXKPrW63SRU7Q Zlqmt0PbC/Ccw== From: Andreas Hindborg To: "Oliver Mangold" Cc: Miguel Ojeda ,Alex Gaynor , Boqun Feng ,Gary Guo , =?utf-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg ,Alice Ryhl , Trevor Gross ,, Subject: Re: [PATCH] Rust: Implement a unique reference type URef supplementing ARef In-Reply-To: <87wmdamiik.fsf@kernel.org> (Andreas Hindborg's message of "Fri, 28 Feb 2025 12:10:59 +0100") References: <87wmdamiik.fsf@kernel.org> User-Agent: mu4e 1.12.7; emacs 29.4 Date: Fri, 28 Feb 2025 12:25:48 +0100 Message-ID: <87r03imhtv.fsf@kernel.org> Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Andreas Hindborg writes: > Hi Oliver, > > "Oliver Mangold" writes: > >> For usage with block-mq, we found that having a variant of ARef which is guaranteed to be unique is useful. As chances are it is useful in general, I implemented it as kernel::types::URef. The difference between ARef and URef is basically the same as between Arc and UniqueArc. > > Wrap at 75 characters please :) > Also, be sure to Cc relevant maintainers and reviewers (I did so in this reply). Use scripts/checkpatch.pl and refer to [1]. You can also use `b4` [2] to get a lot of automation. Best regards, Andreas Hindborg [1] https://docs.kernel.org/process/submitting-patches.html [2] https://b4.docs.kernel.org/en/latest/contributor/prep.html