Re: [PATCH 0/2] rust: impl_flags: add convenience functions
From: Gary Guo
Date: Fri Feb 27 2026 - 09:30:50 EST
On Sun Feb 15, 2026 at 8:22 PM GMT, Andreas Hindborg wrote:
> Add a few convenience functions that makes it easier to work with the
> `impl_flags` module and C APIs.
I am not sure that we want to encourage direct manipulation of the underlying
bits. Adding these impls would add a surface of misuse.
Best,
Gary
>
> Signed-off-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>
> ---
> Andreas Hindborg (2):
> rust: impl_flags: add conversion functions
> rust: impl_flags: add bitwise operations with the underlying type
>
> rust/kernel/impl_flags.rs | 36 ++++++++++++++++++++++++++++++++++++
> 1 file changed, 36 insertions(+)
> ---
> base-commit: e9ec05addd1a067fc7cb218f20ecdc1b1b0898c0
> change-id: 20260215-impl-flags-additions-0340ffcba5b9
> prerequisite-change-id: 20250304-feat-add-bitmask-macro-6424b1c317e2:v8
> prerequisite-patch-id: 05dfcf648017dee65c356604e4f99959e76ff64d
> prerequisite-change-id: 20260212-impl-flags-inner-c61974b27b18:v1
> prerequisite-patch-id: edebc37750dccd8d19db0b8fbd5f69f9877675a2
>
> Best regards,