syscalls

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Calls

func Calls(class, group string) []string

func Classes

func Classes() []string

func Groups

func Groups(class string) []string

Types

type Syscall

type Syscall struct {
	Nr    int    `json:"nr"`
	Name  string `json:"name"`
	Class string `json:"class"`
	Group string `json:"group"`
}

func Lookup

func Lookup(v interface{}) *Syscall

func (*Syscall) String

func (s *Syscall) String() string

type SyscallList

type SyscallList []*Syscall

func GetByClass

func GetByClass(class string) SyscallList

func (SyscallList) GetByGroup

func (s SyscallList) GetByGroup(group string) SyscallList

type Syscalls

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

func New

func New() (*Syscalls, error)

New creates an initializes a Syscalls structure which can be used for looking up data about a specific syscall.

func (*Syscalls) GetByClass

func (s *Syscalls) GetByClass(class string) SyscallList

func (*Syscalls) Lookup

func (s *Syscalls) Lookup(v interface{}) *Syscall

Lookup takes either a string or an int and attempts to find the corresponding Syscall where an int==NR and string==NameOfSyscall

Jump to

Keyboard shortcuts

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