summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/vfs/device.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-02-14 21:44:54 +0000
committergVisor bot <gvisor-bot@google.com>2020-02-14 21:44:54 +0000
commit554d094fa3665815d8582f5cb1e5a68fd41b5ea1 (patch)
treea3af4032f5f12d84c5be5310115a2f968989882c /pkg/sentry/vfs/device.go
parentd266dd12b9c9fa6c691a43fef3b63e37bd649dc6 (diff)
parente4c7f3e6f6c19f3259820a4c41b69e85c0454379 (diff)
Merge release-20200211.0-20-ge4c7f3e (automated)
Diffstat (limited to 'pkg/sentry/vfs/device.go')
-rwxr-xr-xpkg/sentry/vfs/device.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/sentry/vfs/device.go b/pkg/sentry/vfs/device.go
index 3af2aa58d..bda5576fa 100755
--- a/pkg/sentry/vfs/device.go
+++ b/pkg/sentry/vfs/device.go
@@ -56,6 +56,7 @@ type Device interface {
Open(ctx context.Context, mnt *Mount, d *Dentry, opts OpenOptions) (*FileDescription, error)
}
+// +stateify savable
type registeredDevice struct {
dev Device
opts RegisterDeviceOptions
@@ -63,6 +64,8 @@ type registeredDevice struct {
// RegisterDeviceOptions contains options to
// VirtualFilesystem.RegisterDevice().
+//
+// +stateify savable
type RegisterDeviceOptions struct {
// GroupName is the name shown for this device registration in
// /proc/devices. If GroupName is empty, this registration will not be