Crate virtio_driver

Source

Modules§

virtqueue
A virtqueue implementation to be used internally by virtio device drivers.

Macros§

const_assert

Structs§

Be16
An integer type of with an explicit endianness.
Be32
An integer type of with an explicit endianness.
Be64
An integer type of with an explicit endianness.
BeSize
An integer type of with an explicit endianness.
Completion
The result of a completed request.
EventFd
EventfdFlags
EFD_* flags for use with eventfd.
Le16
An integer type of with an explicit endianness.
Le32
An integer type of with an explicit endianness.
Le64
An integer type of with an explicit endianness.
LeSize
An integer type of with an explicit endianness.
SBe16
An integer type of with an explicit endianness.
SBe32
An integer type of with an explicit endianness.
SBe64
An integer type of with an explicit endianness.
SBeSize
An integer type of with an explicit endianness.
SLe16
An integer type of with an explicit endianness.
SLe32
An integer type of with an explicit endianness.
SLe64
An integer type of with an explicit endianness.
SLeSize
An integer type of with an explicit endianness.
VirtioBlkConfig
The Device Configuration Space for a virtio-blk device.
VirtioBlkFeatureFlags
VirtioBlkQueue
A queue of a virtio-blk device.
VirtioBlkReqBuf
VirtioFeatureFlags
iovec

Constants§

SCM_SOCKET_MAX_FD_COUNT
The maximum number of FDs that can be sent in a single send.

Traits§

ByteValued
Types for which it is safe to initialize from raw data.
IntoIobuf
Trait for types that can be converted into an iovec that can be referenced by a syscall for the lifetime of this object.
IovaTranslator
Something that can translate process addresses into IOVAs.
QueueNotifier
A trait for types that can be used to submit available buffer notifications to a queue.
ScmSocket
Trait for file descriptors can send and receive socket control messages via sendmsg and recvmsg.
VirtioTransport
An interface to the virtio transport/bus of a device

Functions§

validate_lba
virtio_blk_max_queues

Type Aliases§

VirtioBlkTransport