package sys
import "gvisor.dev/gvisor/pkg/sentry/fsimpl/sys"
Package sys implements sysfs.
Index ¶
- Constants
- type FilesystemType
- func (fsType FilesystemType) GetFilesystem(ctx context.Context, vfsObj *vfs.VirtualFilesystem, creds *auth.Credentials, source string, opts vfs.GetFilesystemOptions) (*vfs.Filesystem, *vfs.Dentry, error)
- func (FilesystemType) Name() string
- func (FilesystemType) Release(ctx context.Context)
- type InternalData
Constants ¶
const ( // Name is the default filesystem name. Name = "sysfs" )
Types ¶
type FilesystemType ¶
type FilesystemType struct{}
FilesystemType implements vfs.FilesystemType.
+stateify savable
func (FilesystemType) GetFilesystem ¶
func (fsType FilesystemType) GetFilesystem(ctx context.Context, vfsObj *vfs.VirtualFilesystem, creds *auth.Credentials, source string, opts vfs.GetFilesystemOptions) (*vfs.Filesystem, *vfs.Dentry, error)
GetFilesystem implements vfs.FilesystemType.GetFilesystem.
func (FilesystemType) Name ¶
func (FilesystemType) Name() string
Name implements vfs.FilesystemType.Name.
func (FilesystemType) Release ¶
func (FilesystemType) Release(ctx context.Context)
Release implements vfs.FilesystemType.Release.
type InternalData ¶
type InternalData struct { // ProductName is the value to be set to devices/virtual/dmi/id/product_name. ProductName string // EnableTPUProxyPaths is whether to populate sysfs paths used by hardware // accelerators. EnableTPUProxyPaths bool // TestSysfsPathPrefix is a prefix for the sysfs paths. It is useful for // unit testing. TestSysfsPathPrefix string }
InternalData contains internal data passed in via vfs.GetFilesystemOptions.InternalData.
+stateify savable
Source Files ¶
kcov.go pci.go save_restore.go sys.go
- Version
- v0.0.0-20250605235530-a6711d1e1dc6 (latest)
- Published
- Jun 5, 2025
- Platform
- linux/amd64
- Imports
- 23 packages
- Last checked
- 4 hours ago –
Tools for package owners.