Module devices::virtio::vhost_user_backend  
source · Re-exports§
pub use gpu::run_gpu_device;pub use gpu::Options as GpuOptions;pub use snd::run_snd_device;pub use snd::Options as SndOptions;
Modules§
- block 🔒
 - console 🔒
 - fs 🔒
 - handler 🔒Library for implementing vhost-user device executables.
 - net 🔒
 - vsock 🔒
 - wl 🔒
 
Structs§
- Block device
 - Console device
 - FS Device
 - Net device
 - On Unix we can listen to a socket.
 - Connection from connected socket
 - A vhost-vsock device which handle is already opened. This allows the parent process to open the vhost-vsock device, create this structure, and pass it to the child process so it doesn’t need the rights to open the vhost-vsock device itself.
 - Vsock device
 - Wayland device
 
Enums§
Traits§
- Trait that the platform-specific type
VhostUserConnectionneeds to implement. It contains all the methods that are ok to call from non-platform specific code. - Trait for vhost-user devices. Analogous to the
VirtioDevicetrait. - A trait for not-yet-built vhost-user devices.
 
Functions§
- Return a new vhost-user console device.
paramsare the device’s configuration, andkeep_rdsis a vector into whichRawDescriptorsthat need to survive a fork are added, in case the device is meant to run within a child process. - Starts a vhost-user block device. Returns an error if the given
argsis invalid or the device fails to run. - Starts a vhost-user console device. Returns an error if the given
argsis invalid or the device fails to run. - Starts a vhost-user fs device. Returns an error if the given
argsis invalid or the device fails to run. - Starts a vhost-user net device. Returns an error if the given
argsis invalid or the device fails to run. - Returns an error if the given
argsis invalid or the device fails to run. - Starts a vhost-user wayland device. Returns an error if the given
argsis invalid or the device fails to run.