mm

package
Version: v0.0.0-...-b957d1f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2017 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapFrames

func MapFrames(frames []uintptr) unsafe.Pointer

MapFrames maps the provided machine frames into contiguous memory and returns a pointer to the block.

Types

type Page

type Page struct {
	// Frame is an opaque identifier of the page's machine frame.
	Frame uintptr
	// Ptr is a pointer to a page of memory of size len(Data).
	Ptr unsafe.Pointer
	// Data is the page represented as a slice of bytes.
	Data []byte
}

Page represents a page of allocated memory.

func AllocPage

func AllocPage() *Page

AllocPage allocates a physical page, maps it into memory, and returns a Page structure describing the page.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL