erpc

package
v0.0.0-...-26052f9 Latest Latest
Warning

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

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

Documentation

Overview

Package erpc holds erpc related files

Index

Constants

View Source
const (
	// DiscardInodeOp discards an inode
	DiscardInodeOp = iota + 1
	// DiscardPidOp discards a pid (DEPRECATED)
	DiscardPidOp
	// ResolveSegmentOp resolves the requested segment (DEPRECATED)
	ResolveSegmentOp
	// ResolvePathOp resolves the requested path
	ResolvePathOp
	// ResolveParentOp resolves the parent of the provide path key (DEPRECATED)
	ResolveParentOp
	// RegisterSpanTLSOP is used for span TLS registration
	RegisterSpanTLSOP
	// ExpireInodeDiscarderOp is used to expire an inode discarder
	ExpireInodeDiscarderOp
	// ExpirePidDiscarderOp is used to expire a pid discarder
	ExpirePidDiscarderOp
	// BumpDiscardersRevision is used to bump the discarders revision (DEPRECATED)
	BumpDiscardersRevision
	// GetRingbufUsage is used to retrieve the ring buffer usage
	GetRingbufUsage
	// UserSessionContextOp is used to inject the Kubernetes User context
	UserSessionContextOp
)
View Source
const (

	// ERPCDefaultDataSize default size of data of a request
	ERPCDefaultDataSize = 256
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ERPC

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

ERPC defines a krpc object

func NewERPC

func NewERPC() (*ERPC, error)

NewERPC returns a new ERPC object

func (*ERPC) Close

func (k *ERPC) Close() error

Close closes the ERPC client

func (*ERPC) Request

func (k *ERPC) Request(req *Request) error

Request generates an ioctl syscall with the required request

type Request

type Request struct {
	OP uint8
	// Data contains the content of the request
	// DISCLAIMER: this has to be a byte array, otherwise `unsafe.Pointer(req)` will point to a memory region that
	// contains a slice header
	Data [ERPCDefaultDataSize]byte
}

Request defines a EPRC request

func NewERPCRequest

func NewERPCRequest(op uint8) *Request

NewERPCRequest returns a new eRPC request with a data section of the provided size

Jump to

Keyboard shortcuts

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