[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAH5fLgjFvm-+jVpBsgU-sgOOzHic9DvcUMMg_z0G+37z5DWbPg@mail.gmail.com>
Date: Thu, 27 Feb 2025 08:52:45 +0100
From: Alice Ryhl <aliceryhl@...gle.com>
To: Alistair Francis <alistair@...stair23.me>
Cc: linux-cxl@...r.kernel.org, linux-kernel@...r.kernel.org, lukas@...ner.de,
linux-pci@...r.kernel.org, bhelgaas@...gle.com, Jonathan.Cameron@...wei.com,
rust-for-linux@...r.kernel.org, akpm@...ux-foundation.org,
boqun.feng@...il.com, bjorn3_gh@...tonmail.com, wilfred.mallawa@....com,
ojeda@...nel.org, alistair23@...il.com, a.hindborg@...nel.org,
tmgross@...ch.edu, gary@...yguo.net, alex.gaynor@...il.com,
benno.lossin@...ton.me
Subject: Re: [RFC v2 19/20] rust: allow extracting the buffer from a CString
On Thu, Feb 27, 2025 at 4:12 AM Alistair Francis <alistair@...stair23.me> wrote:
>
> The kernel CString is a wrapper aroud a KVec. This patch allows
> retrieving the underlying buffer and consuming the CString. This allows
> users to create a CString from a string and then retrieve the underlying
> buffer.
>
> Signed-off-by: Alistair Francis <alistair@...stair23.me>
I believe the idiomatic naming for a method like this is `into_vec`.
Alice
Powered by blists - more mailing lists