Re: [PATCH] Rust: Implement a unique reference type URef supplementing ARef

From: Andreas Hindborg
Date: Fri Feb 28 2025 - 06:26:07 EST


Andreas Hindborg <a.hindborg@xxxxxxxxxx> writes:

> Hi Oliver,
>
> "Oliver Mangold" <oliver.mangold@xxxxx> 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