kernel

package
v0.0.0-...-1a7aca4 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Memcopy

func Memcopy(src, dst uintptr, size uintptr)

Memcopy copies size bytes from src to dst.

func Memset

func Memset(addr uintptr, value byte, size uintptr)

Memset sets size bytes at the given address to the supplied value. The implementation is based on bytes.Repeat; instead of using a for loop, this function uses log2(size) copy calls which should give us a speed boost as page addresses are always aligned.

Types

type Error

type Error struct {
	// The module where the error occurred.
	Module string

	// The error message
	Message string
}

Error describes a kernel error. All kernel errors must be defined as global variables that are pointers to the Error structure. This requirement stems from the fact that the Go allocator is not available to us so we cannot use errors.New.

func (*Error) Error

func (e *Error) Error() string

Error implements the error interface.

Directories

Path Synopsis
Package goruntime contains code for bootstrapping Go runtime features such as the memory allocator.
Package goruntime contains code for bootstrapping Go runtime features such as the memory allocator.
mm
pmm
vmm
Package sync provides synchronization primitive implementations for spinlocks and semaphore.
Package sync provides synchronization primitive implementations for spinlocks and semaphore.

Jump to

Keyboard shortcuts

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