so

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: BSD-3-Clause Imports: 10 Imported by: ? modules, 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

This section is empty.

Variables

View Source
var AllLibraries = regexp.MustCompile(`\.so($|\.)`)

AllLibraries represents a filter that matches all shared libraries

Functions

This section is empty.

Types

type Library

type Library struct {
	PidsPath []string // list of host pid path like /proc/<pid> per libraryKey
	HostPath string   // path of the library seen by the host
	// contains filtered or unexported fields
}

Library define a dynamic library

func Find

func Find(filter *regexp.Regexp) []Library

Find returns the host-resolved paths of all shared libraries (per mount namespace) matching the given filter It does so by iterating over all /proc/<PID>/maps and /proc/<PID>/mountinfo files in the host If filter is nil, all entries from /proc/<PID>/maps with a pathname are reported

func FindProc

func FindProc(procPath string, filter *regexp.Regexp) []Library

Find returns the host-resolved paths of all shared libraries (per mount namespace) matching the given filter It does so by iterating over all /procPath/<PID>/maps and /procPath/<PID>/mountinfo files in the host If filter is nil, all entries from /procPath/<PID>/maps with a pathname are reported

func FromPID

func FromPID(pid int32, filter *regexp.Regexp) []Library

FromPID returns all shared libraries matching the given filter that are mapped into memory by a given PID If filter is nil, all entries from /proc/<PID>/maps with a pathname are reported

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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