Versions in this module Expand all Collapse all v0 v0.1.1 Jun 9, 2026 v0.1.0 Jun 9, 2026 Changes in this version + const AcceptedFeatures + const DefaultPollIterations + const RequestQueueIdx + const RequestQueueSize + var ErrFeaturesNotOK = commonRngError("go-virtio/rng: FEATURES_OK status bit didn't stick after DriverFeature write") + var ErrInitWrongDeviceID = commonRngError("go-virtio/rng: PCI device ID is not 0x1044 (modern entropy device)") + var ErrNotModernDevice = commonRngError("go-virtio/rng: device doesn't offer VIRTIO_F_VERSION_1 (legacy-only)") + var ErrQueueNotAvailable = commonRngError("go-virtio/rng: device reports QueueSize=0 for the request queue") + var ErrReadTimeout = commonRngError("go-virtio/rng: read poll timeout (device returned no entropy within budget)") + func AcceptFeatures(deviceFeatures uint64) (uint64, error) + type VirtioRng struct + Cfg *common.ModernConfig + NegotiatedFeatures uint64 + func OpenVirtioRng(t common.Transport) (*VirtioRng, error) + func (r *VirtioRng) Read(p []byte) (int, error) + func (r *VirtioRng) ReadPoll(p []byte, pollIterations int) (int, error) + func (r *VirtioRng) RequestQueue() *common.Virtqueue