Re: [PATCH v3 1/7] rust: firmware: add request_into_buf()
"Danilo Krummrich" <[email protected]>
| Newsgroups | dev.linux.lists.nova-gpu,dev.linux.lists.driver-core,org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <[email protected]> |
On Mon Jul 6, 2026 at 8:30 AM CEST, Alexandre Courbot wrote: > Sashiko is correct to point out that this doesn't return the number of > bytes actually written into `buf`. We might not use that information in > nova-core, but this is a kernel-wide API. Returning the size only doesn't carry a lot of value, please see [1]. > Returning a `Result<&[u8]>` would take care of this and cover the > general use-case nicely. I'm fine with either this or just Result, as we don't have a user for the former. [1] https://lore.kernel.org/nova-gpu/[email protected]/