syscallinfo

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultABI added in v1.3.2

func DefaultABI() (string, error)

func GetSyscallName

func GetSyscallName(abi string, sysID int) (string, error)

GetSyscallName returns the name of a syscall based on its id

func SyscallID added in v1.3.2

func SyscallID(sysName string, abi string) (int, error)

SyscallID returns the id of a syscall based on its name and an ABI ABI may be empty, in which case the default ABI is used (e.g., x64 for x86_64) returns -1, if no system call was found

func SyscallsNames added in v1.3.2

func SyscallsNames(abi string) ([]string, error)

return all syscall names for the given ABI

Types

type SyscallArgInfo

type SyscallArgInfo struct {
	Name string
	Type string
}

SyscallArgInfo is the name and the type (as string) of a syscall argument

type SyscallArgs

type SyscallArgs []SyscallArgInfo

SyscallArgs is the arguments for a given syscall

func GetSyscallArgs

func GetSyscallArgs(name string) (SyscallArgs, bool)

GetSyscallArgs returns the arguments of a system call

func (SyscallArgs) Proto

func (sai SyscallArgs) Proto(name string) string

Proto returns a string representing a prototype for the system call

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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