Struct kernel::mm::virt::Area

source · []
pub struct Area { /* private fields */ }
Expand description

A wrapper for the kernel’s struct vm_area_struct.

It represents an area of virtual memory.

Invariants

vma is always non-null and valid.

Implementations

Returns the flags associated with the virtual memory area.

The possible flags are a combination of the constants in flags.

Sets the flags associated with the virtual memory area.

The possible flags are a combination of the constants in flags.

Returns the start address of the virtual memory area.

Returns the end address of the virtual memory area.

Maps a single page at the given address within the virtual memory area.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.