Skip to main content

Crate toyos

Crate toyos 

Source
Expand description

ToyOS userland SDK.

Typed handles, IPC framing, ports and namespaces, shared memory, and ergonomic wrappers over the kernel ABI defined in toyos-abi.

Re-exports§

pub use ipc::Connection;
pub use device::DmaRegion;
pub use device::FramebufferDev;
pub use device::HdaDev;
pub use device::Keyboard;
pub use device::Mouse;
pub use device::PciDev;
pub use device::VirtioSoundDev;

Modules§

audio
soundd IPC protocol and slot-ring shared memory audio streaming.
census
The kernel’s live-object count, per kind.
device
Hardware device access.
endow
What this process was given, and the only place a service name resolves.
gpu
Screen operations, on the framebuffer claim that authorizes them.
ipc
Framed IPC over sockets (bidirectional pipe pairs).
launch
Asking /bin/init to start a declared program.
log
Reading the kernel’s log, for the three programs endowed to.
namespace
The set of service names one process can resolve.
net
ToyOS userland networking library.
poller
Event-driven I/O polling on an inbox.
port
A port, and the two ends of it.
process
A process, as a thing you hold rather than a number you know.
shm
Shared memory with RAII.
surface
Key events down the surface tree.
syscap
The capability whose whole authority is in the rights on the handle.
system
System information and control.

Macros§

ipc_payload
Declare a #[repr(C)] IPC payload struct.

Structs§

Device
A claimed hardware device, out of this process’s endowment table.
Pipe
One end of a kernel pipe.
RawHandle
One entry in a process’s handle table.

Traits§

AsHandle
Trait for types that wrap a kernel handle.

Functions§

pipe_pair
The two ends of a fresh pipe.