diff options
| author | Filipe Xavier <[email protected]> | 2025-01-07 19:25:39 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2025-01-13 22:46:23 +0000 |
| commit | c80dd3fc45d573458bc763d599d97c82cf5dc212 (patch) | |
| tree | 08c7e86fe040f70391bdf459f50150021a16e0a0 /tools/net/ynl/pyynl/cli.py | |
| parent | rust: kernel: add improved version of `ForeignOwnable::borrow_mut` (diff) | |
| download | kernel-c80dd3fc45d573458bc763d599d97c82cf5dc212.tar.gz kernel-c80dd3fc45d573458bc763d599d97c82cf5dc212.zip | |
rust: uaccess: generalize userSliceReader to support any Vec
The UserSliceReader::read_all function is currently restricted to use
only Vec with the kmalloc allocator. However, there is no reason for
this limitation.
This patch generalizes the function to accept any Vec regardless of the
allocator used.
There's a use-case for a KVVec in Binder to avoid maximum sizes for a
certain array.
Link: https://github.com/Rust-for-Linux/linux/issues/1136
Signed-off-by: Filipe Xavier <[email protected]>
Reviewed-by: Alice Ryhl <[email protected]>
Reviewed-by: Boqun Feng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Reflowed and slightly reworded title. - Miguel ]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'tools/net/ynl/pyynl/cli.py')
0 files changed, 0 insertions, 0 deletions
