Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
google
GitHub Repository: google/crosvm
Path: blob/main/devices/src/virtio/vsock/sys.rs
5394 views
1
// Copyright 2023 The ChromiumOS Authors
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
cfg_if::cfg_if! {
6
if #[cfg(any(target_os = "android", target_os = "linux"))] {
7
mod linux;
8
use linux as platform;
9
pub use crate::virtio::vhost::Vsock;
10
} else if #[cfg(windows)] {
11
mod windows;
12
use windows as platform;
13
pub use windows::Vsock;
14
}
15
}
16
17
pub use platform::VsockConfig;
18
19