generictypes

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	GenericIntType    = 1
	GenericCharBuffer = 2
	GenericCharIovec  = 3
	GenericSizeType   = 4
	GenericSkbType    = 5
	GenericStringType = 6
	GenericSockType   = 7
	GenericCredType   = 8

	GenericS64Type = 10
	GenericU64Type = 11
	GenericS32Type = 12
	GenericU32Type = 13

	GenericFilenameType = 14
	GenericPathType     = 15
	GenericFileType     = 16
	GenericFdType       = 17

	// GenericConstBuffer is a buffer type whose size is static (and known).
	GenericConstBuffer   = 18
	GenericBpfAttr       = 19
	GenericPerfEvent     = 20
	GenericBpfMap        = 21
	GenericUserNamespace = 22
	GenericCapability    = 23

	GenericKiocb   = 24
	GenericIovIter = 25

	GenericLoadModule   = 26
	GenericKernelModule = 27

	GenericSyscall64 = 28

	GenericS16Type = 29
	GenericU16Type = 30
	GenericS8Type  = 31
	GenericU8Type  = 32

	GenericKernelCap      = 33
	GenericCapInheritable = 34
	GenericCapPermitted   = 35
	GenericCapEffective   = 36

	GenericLinuxBinprmType = 37

	GenericDataLoc = 38

	GenericNetDev = 39

	GenericSockaddrType = 40
	GenericSocketType   = 41

	GenericDentryType = 42

	GenericBpfProgType    = 43
	GenericSockaddrUnType = 44

	GenericUnsetType = 0

	GenericNopType     = -1
	GenericInvalidType = -2
)
View Source
const (
	GenericUserBpfCmdType = 1
)

Userspace pretty printer types.

Variables

View Source
var GenericUserToKernel = map[int]int{
	GenericUserBpfCmdType: GenericIntType,
}
View Source
var GenericUserTypeToStringTable = map[int]string{
	GenericUserBpfCmdType: "bpf_cmd",
	GenericInvalidType:    "",
}

Functions

func GenericTypeFromBTF added in v1.4.0

func GenericTypeFromBTF(arg btf.Type) int

func GenericTypeFromString

func GenericTypeFromString(arg string) int

func GenericTypeString added in v1.5.0

func GenericTypeString(ty int) string

func GenericTypeToString added in v1.1.0

func GenericTypeToString(ty int) (string, error)

func GenericUserToKernelType added in v1.2.1

func GenericUserToKernelType(arg int) int

func GenericUserTypeFromString added in v1.2.1

func GenericUserTypeFromString(arg string) int

func GenericUserTypeToString added in v1.2.1

func GenericUserTypeToString(ty int) string

GenericUserTypeToString() converts the passed argument type to its string representation. Returns empty string on non valid types.

func PathType added in v1.5.0

func PathType(ty int) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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