package mirage-types
Network
A network interface that serves Ethernet frames.
type page_aligned_buffer = Io_page.t
Abstract type for a page-aligned memory buffer
type buffer = Cstruct.t
Abstract type for a memory buffer that may not be page aligned
type error = [
| `Unknown of string
(*an undiagnosed error
*)| `Unimplemented
(*operation not yet implemented in the code
*)| `Disconnected
(*the device has been previously disconnected
*)
]
IO operation errors
writev nf bufs
output a list of buffers to netfront nf
as a single packet.
listen nf fn
is a blocking operation that calls fn buf
with every packet that is read from the interface. It returns as soon as it has initialised, and the function can be stopped by calling disconnect
in the device layer.
val reset_stats_counters : t -> unit
Reset the statistics associated with this device to their defaults.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>