abi

package
v0.0.0-...-23e6066 Latest Latest
Warning

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

Go to latest
Published: May 3, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package abi describes the interface between a kernel and userspace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlagSet

type FlagSet []struct {
	Flag uint64
	Name string
}

A FlagSet is a slice of bit-flags and their name.

func (FlagSet) Parse

func (s FlagSet) Parse(val uint64) string

Parse returns a pretty version of val, using the flag names for known flags. Unknown flags remain numeric.

type OS

type OS int

OS describes the target operating system for an ABI.

Note that OS is architecture-independent. The details of the OS ABI will vary between architectures.

const (
	// Linux is the Linux ABI.
	Linux OS = iota
)

func (OS) String

func (o OS) String() string

String implements fmt.Stringer.

type ValueSet

type ValueSet []struct {
	Value uint64
	Name  string
}

ValueSet is a slice of syscall values and their name. Parse will replace values that exactly match an entry with its name.

func (ValueSet) Parse

func (e ValueSet) Parse(val uint64) string

Parse returns the name of the value associated with `val`. Unknown values are converted to hex.

func (ValueSet) ParseName

func (e ValueSet) ParseName(name string) (uint64, bool)

ParseName returns the flag value associated with 'name'. Returns false if no value is found.

Directories

Path Synopsis
Package linux contains the constants and types needed to inferface with a Linux kernel.
Package linux contains the constants and types needed to inferface with a Linux kernel.

Jump to

Keyboard shortcuts

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