Netlink

package
v0.0.0-...-7685a06 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: GPL-3.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	BusServiceName = "com.deepin.system.Procs"
	BusPath        = "/com/deepin/system/Procs"
	BusInterface   = BusServiceName
)
View Source
const (
	ProcDir = "/proc"
)

Variables

This section is empty.

Functions

func CreateProcsService

func CreateProcsService() error

Types

type CbId

type CbId struct {
	Idx uint32
	Val uint32
}

type CnMsg

type CnMsg struct {
	Id   CbId
	Seq  uint32
	Ack  uint32
	Len  uint16
	Flag uint16
}

type CommEvent

type CommEvent struct {
	ProcessPid  uint32
	ProcessTgid uint32
	Buf         [16]byte
}

comm event

type ExecProcEvent

type ExecProcEvent struct {
	ProcPid  uint32
	ProcTGid uint32
}

exec proc event

type ExitProcEvent

type ExitProcEvent struct {
	ProcessPid  uint32
	ProcessTgid uint32
	ExitCode    uint32
	ExitSignal  uint32
}

exit proc event

type ForkProcEvent

type ForkProcEvent struct {
	ParentPid  uint32
	ParentTGid uint32
	ChildPid   uint32
	ChildTGid  uint32
}

fork proc event

type IdProcEvent

type IdProcEvent struct {
	ProcPid  uint32
	ProcTGid uint32
}

id proc event

type ProcEventHeader

type ProcEventHeader struct {
	What      uint32
	CPU       uint32
	Timestamp uint64
}

ProcEventHeader corresponds to proc_event in cn_proc.h

type ProcManager

type ProcManager struct {
	// current all proc
	Procs map[string]ProcMessage
	// contains filtered or unexported fields
}

Manager all procs

func NewProcManager

func NewProcManager(service *dbusutil.Service) *ProcManager

func (*ProcManager) GetInterfaceName

func (p *ProcManager) GetInterfaceName() string

type ProcMessage

type ProcMessage struct {
	ExecPath    string // exe path
	Cgroup2Path string // mark cgroup v2 path
	Pid         string // Pid
	PPid        string // ppid
}

proc message

Jump to

Keyboard shortcuts

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