We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d26d32a commit 3964571Copy full SHA for 3964571
1 file changed
rust/kernel/user_ptr.rs
@@ -9,8 +9,8 @@ use crate::{
9
error::code::*,
10
error::Result,
11
io_buffer::{IoBufferReader, IoBufferWriter},
12
+ prelude::KVec,
13
};
-use alloc::vec::Vec;
14
15
/// A reference to an area in userspace memory, which can be either
16
/// read-only or read-write.
@@ -59,7 +59,7 @@ impl UserSlicePtr {
59
///
60
/// Returns `EFAULT` if the address does not currently point to
61
/// mapped, readable memory.
62
- pub fn read_all(self) -> Result<Vec<u8>> {
+ pub fn read_all(self) -> Result<KVec<u8>> {
63
self.reader().read_all()
64
}
65
0 commit comments