summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2020-01-29 10:08:25 -0800
committergVisor bot <gvisor-bot@google.com>2020-01-29 10:09:31 -0800
commit8dcedc953a610b97efe9f68ac8fecf5e15a7e26b (patch)
tree232cc04204e1f6a0fce0362199087e3020f17414 /pkg/abi
parent4cb55a7a3b09c430fa2b7197fdc7b84b7e88a6ed (diff)
Add //pkg/sentry/devices/memdev.
PiperOrigin-RevId: 292165063
Diffstat (limited to 'pkg/abi')
-rw-r--r--pkg/abi/linux/dev.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/abi/linux/dev.go b/pkg/abi/linux/dev.go
index 421e11256..89f9a793f 100644
--- a/pkg/abi/linux/dev.go
+++ b/pkg/abi/linux/dev.go
@@ -36,6 +36,9 @@ func DecodeDeviceID(rdev uint32) (uint16, uint32) {
//
// See Documentations/devices.txt and uapi/linux/major.h.
const (
+ // MEM_MAJOR is the major device number for "memory" character devices.
+ MEM_MAJOR = 1
+
// TTYAUX_MAJOR is the major device number for alternate TTY devices.
TTYAUX_MAJOR = 5