[go: up one dir, main page]

Crate fuchsia_zircon

Source
Expand description

Type-safe bindings for Zircon kernel syscalls.

Re-exports§

pub extern crate fuchsia_zircon_sys as sys;

Modules§

prelude
Prelude containing common utility traits. Designed for use like use fuchsia_zircon::prelude::*;

Structs§

Channel
An object representing a Zircon channel.
Duration
Event
An object representing a Zircon event object.
EventPair
An object representing a Zircon event pair.
Fifo
An object representing a Zircon fifo.
Handle
An object representing a Zircon handle.
HandleRef
A borrowed reference to a Handle.
Job
An object representing a Zircon job.
MessageBuf
A buffer for receiving messages from a channel.
Packet
A packet sent through a port. This is a type-safe wrapper for zx_port_packet_t.
Port
An object representing a Zircon port.
Process
An object representing a Zircon process.
Rights
Rights associated with a handle.
SignalPacket
Contents of a signal packet (one generated by the kernel). This is a type-safe wrapper for zx_packet_signal_t.
Signals
Signals that can be waited upon.
Socket
An object representing a Zircon socket.
Status
Status type indicating the result of a Fuchsia syscall.
Thread
An object representing a Zircon thread.
Time
Timer
An object representing a Zircon timer, such as the one returned by zx_timer_create.
UserPacket
Contents of a user packet (one sent by port_queue). This is a type-safe wrapper for zx_packet_user_t.
VmarFlags
Flags to VMAR routines
Vmo
An object representing a Zircon virtual memory object.
VmoOp
VM Object opcodes
WaitItem
A “wait item” containing a handle reference and information about what signals to wait on, and, on return from object_wait_many, which are pending.

Enums§

ClockId
An identifier to select a particular clock. See zx_time_get for more information about the possible values.
PacketContents
The contents of a Packet.
WaitAsyncOpts
Options for wait_async.

Traits§

AsHandleRef
A trait to get a reference to the underlying handle of an object.
Cookied
A trait implemented by all handles for objects which can have a cookie attached.
DurationNum
HandleBased
A trait implemented by all handle-based types.
Peered
A trait implemented by all handles for objects which have a peer.

Functions§

cprng_add_entropy
Mix the given entropy into the kernel CPRNG.
cprng_draw
Draw random bytes from the kernel’s CPRNG to fill the given buffer. Returns the actual number of bytes drawn, which may sometimes be less than the size of the buffer provided.
object_wait_many
Wait on multiple handles. The success return value is a bool indicating whether one or more of the provided handle references was closed during the wait.
ok
Convenience re-export of Status::ok.
size_to_u32_sat
ticks_get
Read the number of high-precision timer ticks since boot. These ticks may be processor cycles, high speed timer, profiling timer, etc. They are not guaranteed to continue advancing when the system is asleep.
ticks_per_second
Return the number of high-precision timer ticks in a second.
usize_into_u32