kernel

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: MIT Imports: 17 Imported by: 1

Documentation

Overview

Code generated by genvector.go using 'go generate'. DO NOT EDIT.

Index

Constants

View Source
const (
	SYS_WAIT_IRQ     = 500
	SYS_WAIT_SYSCALL = 501
	SYS_FIXED_MMAP   = 502
	SYS_EPOLL_NOTIFY = 503
)
View Source
const (
	UNUSED = iota
	INITING
	SLEEPING
	RUNNABLE
	RUNNING
	EXIT
)

Variables

This section is empty.

Functions

func Init

func Init()

called when go runtime init done

func Sched

func Sched()

func ThreadStat

func ThreadStat(stat *[_NTHREDS]int64)

func Yield

func Yield()

Types

type Thread

type Thread struct {
	// contains filtered or unexported fields
}

position of threadTLS and fpstate must be synced with trap.s and syscall.s

func Mythread

func Mythread() *Thread

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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