Struct fuchsia_zircon::Vmo [] [src]

pub struct Vmo(_);

An object representing a Zircon virtual memory object.

As essentially a subtype of Handle, it can be freely interconverted.

Methods

impl Vmo
[src]

[src]

Create a virtual memory object.

Wraps the zx_vmo_create syscall. See the Shared Memory: Virtual Memory Objects (VMOs) for more information.

[src]

Read from a virtual memory object.

Wraps the zx_vmo_read syscall.

[src]

Write to a virtual memory object.

Wraps the zx_vmo_write syscall.

[src]

Get the size of a virtual memory object.

Wraps the zx_vmo_get_size syscall.

[src]

Attempt to change the size of a virtual memory object.

Wraps the zx_vmo_set_size syscall.

[src]

Perform an operation on a range of a virtual memory object.

Wraps the zx_vmo_op_range syscall.

[src]

Look up a list of physical addresses corresponding to the pages held by the VMO from offset to offset+size, and store them in buffer.

Wraps the zx_vmo_op_range syscall with ZX_VMO_OP_LOOKUP.

[src]

Create a new virtual memory object that clones a range of this one.

Wraps the zx_vmo_clone syscall.

Trait Implementations

impl Debug for Vmo
[src]

[src]

Formats the value using the given formatter.

impl Eq for Vmo
[src]

impl PartialEq for Vmo
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl AsHandleRef for Vmo
[src]

[src]

Get a reference to the handle. One important use of such a reference is for object_wait_many. Read more

[src]

Interpret the reference as a raw handle (an integer type). Two distinct handles will have different raw values (so it can perhaps be used as a key in a data structure). Read more

[src]

Set and clear userspace-accessible signal bits on an object. Wraps the zx_object_signal syscall. Read more

[src]

Waits on a handle. Wraps the zx_object_wait_one syscall. Read more

[src]

Causes packet delivery on the given port when the object changes state and matches signals. zx_object_wait_async syscall. Read more

impl From<Handle> for Vmo
[src]

[src]

Performs the conversion.

impl HandleBased for Vmo
[src]

[src]

Duplicate a handle, possibly reducing the rights available. Wraps the zx_handle_duplicate syscall. Read more

[src]

Create a replacement for a handle, possibly reducing the rights available. This invalidates the original handle. Wraps the zx_handle_replace syscall. Read more

[src]

Converts the value into its inner handle. Read more

[src]

Converts the handle into it's raw representation. Read more

[src]

Creates an instance of this type from a handle. Read more

[src]

Creates an instance of another handle-based type from this value's inner handle.

[src]

Creates an instance of this type from the inner handle of another handle-based type. Read more

impl Cookied for Vmo
[src]

Get the cookie attached to this object, if any. Wraps the zx_object_get_cookie syscall. Read more

Attach an opaque cookie to this object with the given scope. The cookie may be read or changed in future only with the same scope. Wraps the zx_object_set_cookie syscall. Read more