crosvm/sys_util/src
Dylan Reid 2320fc7a83 sys_util: sock ctrl - add send/recv flexibility
For historical reasons, crosvm switched to sending `IntoIobuf`, this
isn't implementable for a slice of slices as it would require an
allocation. The rust-vmm fork of sys_util still supports sending
`&[&[u8]]`. Adding that ability back makes it easier to use their
crates.

In addition crosvm allows receiving to slices by not iovecs, again the
opposite of the rust-vmm version. Add that ability as well.

Change-Id: I4566f232adb47a0802e39e3f6c09c03f97190eb3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2740533
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Tested-by: Keiichi Watanabe <keiichiw@chromium.org>
Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org>
2021-03-11 08:06:27 +00:00
..
android sys_util: Log to logd via liblog on Android. 2020-08-18 06:20:00 +00:00
linux sys_util: Log to logd via liblog on Android. 2020-08-18 06:20:00 +00:00
alloc.rs
capabilities.rs
clock.rs
descriptor.rs Final major RawDescriptor transition. 2020-11-13 02:38:47 +00:00
errno.rs
eventfd.rs base: EventFd -> Event renaming 2020-10-06 13:50:09 +00:00
external_mapping.rs gpu_renderer: remove redundant -> () from fns 2020-08-13 01:28:52 +00:00
file_flags.rs
file_traits.rs [data_model] VolatileSlice use IoSlice. 2020-07-21 23:20:22 +00:00
fork.rs sys_util: Fix clippy errors and warnings 2021-03-04 20:23:12 +00:00
handle_eintr.rs sys_util: Apply clippy's autofix 2020-08-06 03:28:09 +00:00
ioctl.rs sys_util: Fix clippy:missing_safety_doc warnings 2020-08-06 03:28:12 +00:00
lib.rs Mark MsgSocket as !Sync. 2020-10-14 01:36:09 +00:00
mmap.rs devices: virtio: fs: DAX based shared memory support 2020-12-16 06:03:54 +00:00
net.rs sys_util: Fix clippy errors and warnings 2021-03-04 20:23:12 +00:00
passwd.rs sys_util: Fix clippy errors and warnings 2021-03-04 20:23:12 +00:00
poll.rs base: Add WaitContext 2020-10-31 07:12:30 +00:00
priority.rs
raw_fd.rs
sched.rs enable core scheduling with the chromeos feature 2020-07-21 02:19:51 +00:00
seek_hole.rs Simplify tests with tempfile::tempfile() 2020-08-27 00:39:03 +00:00
shm.rs sys_util: Fix all the default clippy warnings 2020-08-06 03:28:13 +00:00
signal.rs sys_util: Fix all the default clippy warnings 2020-08-06 03:28:13 +00:00
signalfd.rs base: Add WaitContext 2020-10-31 07:12:30 +00:00
sock_ctrl_msg.rs sys_util: sock ctrl - add send/recv flexibility 2021-03-11 08:06:27 +00:00
struct_util.rs sys_util: Fix clippy:missing_safety_doc warnings 2020-08-06 03:28:12 +00:00
syslog.rs sys_util: Fix clippy errors and warnings 2021-03-04 20:23:12 +00:00
terminal.rs
timerfd.rs sys_util: Fix clippy errors and warnings 2021-03-04 20:23:12 +00:00
write_zeroes.rs sys_util: Fix clippy errors and warnings 2021-03-04 20:23:12 +00:00