syscallinfo

package
v0.8.20 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSyscallID

func GetSyscallID(sysName string) int

GetSyscallID returns the id of a syscall based on its name returns -1, if no system call was found

func GetSyscallName

func GetSyscallName(sysID int) string

GetSyscallName returns the name of a syscall based on its i d

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

Jump to

Keyboard shortcuts

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