Skip to main content

Crate userboot

Crate userboot 

Source

Structs§

Log
This is an ephemeral object that implements the core::fmt::Write trait. It’s used as write!(&zx_libc::sanitizer::Log::new(), "...", ...) to send a single logging line. The object holds a fixed buffer that is used to collect the multiple fragments from formatters; it’s written using zx_libc::sanitizer::log() when the buffer fills or the object is dropped.

Functions§

log
Write logging information from the sanitizer runtime. The string is expected to be printable text with ‘\n’ ending each line. Timestamps and globally unique identifiers of the calling process and thread (zx::Koid) are attached to all messages, so there is no need to include those details in the text. The log of messages written with this call automatically includes address and ELF build ID details of the program and all shared libraries sufficient to translate raw address values into program symbols or source locations via a post-processor that has access to the original ELF files and their debugging information. The text can contain markup around address values that should be resolved symbolically.
take_bootstrap_channel
This transfers ownership of the channel from the kernel where the message full of system handles can be read.
take_system_handles
This reads the system capability message from the bootstrap channel. It is mutually exclusive with take_bootstrap_channel().